Linux命令学习之二
2015-10-10 10:47
323 查看
每日一结
![](http://blog.chinaunix.net/attachment/201508/6/29785572_143884124987fL.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841261DG10.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841276Ncxn.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841298UWdd.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388413099Zq5.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841319d7Vt.jpg)
命令置换:是将一个命令的输出作为另一个命令的参数,命令格式如下:
commond1 `command2`
其中,命令command2的输出将作为命令command1的参数,需要注意的是,
命令置换的单引号为ESC键下方的 `
其意思就是说,先运行单引号内的命令,再将其命令作为之外的命令的输入
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388413360c3u.jpg)
注1:当你想要永久的修改环境变量时,可以在主目录下的./bashrc文件中新增一行,写入 export 环境变量=$环境变量:内容1:内容2:...(其中内容指的是目录)
注2:在修改环境变量时,记得在 = 和环境变量之间加上$,以防止其它命令的路径被修改而不能使用
![](http://blog.chinaunix.net/attachment/201508/6/29785572_143884134687Pc.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841355N0YZ.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_143884137522af.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841385oRb5.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388414809Yv8.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841468PdSP.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841456hkZo.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841445xupo.jpg)
TFTP主要用于实现两主机之间的上传和下载
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388414262kKA.jpg)
NFS主要是两主机对共享目录都可以实时同步操作
关注微信公众号获取更多资讯
![](https://img-blog.csdn.net/20170616122448372?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMDY2MTc4Mg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_143884124987fL.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841261DG10.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841276Ncxn.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841298UWdd.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388413099Zq5.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841319d7Vt.jpg)
命令置换:是将一个命令的输出作为另一个命令的参数,命令格式如下:
commond1 `command2`
其中,命令command2的输出将作为命令command1的参数,需要注意的是,
命令置换的单引号为ESC键下方的 `
其意思就是说,先运行单引号内的命令,再将其命令作为之外的命令的输入
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388413360c3u.jpg)
注1:当你想要永久的修改环境变量时,可以在主目录下的./bashrc文件中新增一行,写入 export 环境变量=$环境变量:内容1:内容2:...(其中内容指的是目录)
注2:在修改环境变量时,记得在 = 和环境变量之间加上$,以防止其它命令的路径被修改而不能使用
![](http://blog.chinaunix.net/attachment/201508/6/29785572_143884134687Pc.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841355N0YZ.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_143884137522af.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841385oRb5.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388414809Yv8.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841468PdSP.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841456hkZo.jpg)
![](http://blog.chinaunix.net/attachment/201508/6/29785572_1438841445xupo.jpg)
TFTP主要用于实现两主机之间的上传和下载
![](http://blog.chinaunix.net/attachment/201508/6/29785572_14388414262kKA.jpg)
NFS主要是两主机对共享目录都可以实时同步操作
关注微信公众号获取更多资讯
相关文章推荐
- linux调试gdb
- linux zip 文件夹
- linux编译makefile
- linux expr命令字符串操作
- CentOS6.6重设root密码(单用户模式)
- Linux里如何查找文件内容
- Linux系统参数(待更新)
- 如何在linux系统中设置静态ip地址
- Linux内核学习资料
- Install KVM (QEMU) on CentOS 7 / RHEL 7
- linux 软连接方式实现上传文件存储目录的无缝迁移
- linux 软连接方式实现上传文件存储目录的无缝迁移
- Linux命令
- Linux查看硬盘使用情况
- LINUX中nagios客户端安装步骤及遇到问题
- linux下rsync+sersync实现自动备份数据
- Linux战地日记—压缩解压命令
- linux curl get 传参
- 查看Linux系统版本信息方法
- linux发行版i386i686x86-64的区别