常用Linux命令

1, 修改linux运行级别:编辑/etc/inittab

2,修改主机名:

第一步:
#hostname myhadoop 
第二步:
修改/etc/sysconfig/network中的hostname
第三步:
修改/etc/hosts文件


3,修改环境变量

vim /etc/profile
在文档最后,添加:
export PATH="/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH"
保存,退出,然后运行:
#source /etc/profile
然后重新打开一个终端,即可

不报错则成功。

4,显示

#cat 或 #less 或 #more 或head 或tail 

#ls > file 可以通过cat file查看

5,显示语系变量:locale

6,


你可能感兴趣的:(linux)