Linux常见指令
切换账户
[root@localhost ~]# su 用户名
输入命令
[root@localhost ~]# echo this line is too long to fit\
>on one line.
锁住终端会话
[cwx@localhost ~]$ vlock
退出
[cwx@localhost ~]$ exit
清屏
[root@localhost ~]# clear
新建文件
[root@localhost ~]# touch 1.txt
打开并修改文件
[root@localhost ~]# gedit 1.txt
查看
[root@localhost ~]# cat 1.txt
合并并重定向新的文件中
[root@localhost ~]# cat clear.txt cd.txt >f3.txt
more命令(如果文件很长查看文件)
[root@localhost ~]# more 1.txt
[root@localhost ~]# less 1.txt
持续更新