其他命令

cat  file1 #打开文件

 

more  file1   

 

tail  file1          

 

 head  file1       

 

 wc  file1            #统计文件file1中的行数、单词数和字符数

 rm -r dir 删除目录

 rm  -i  file1        #请求用户确认删除file1文件(慎用!一定是删除自己创建的文件)

 

实用程序 

date                 #输出系统日期和时间

 

cal                  #显示本月的日历。cal 2002 显示2002年的日历

 

 clear               # 清除终端屏幕

history             #显示你以前执行过的命令的列表

 

 man   命令          #提供命令的基本用法

 

echo  Hello,Welcome to here!   读取参数并把它写到输出

 

posted @ 2021-10-14 10:42  困到很想醒  阅读(29)  评论(0编辑  收藏  举报