Linux常用到的一些命令


--------------------------------------------------------------------
文件应用命令
--------------------------------------------------------------------

cp 复制文件
 
diff 显示两个文件之间的不同
 
file 显示一个文件的内容信息
 
grep 为一个字符串查找文件
Searches file(s) for a string 
 
head 显示一个文件开头的一行

lpq 显示打印机队列列表
 
lpr 在打印机队列中放置文件
 
lprm 在打印机队列中删除一个任务
 
mv 重命名一个文件或移动文件到另一个目录
 
sort 把一个文件按行顺序放置
 
tail 显示一个文件末尾的几行
 
uniq 显示一个文件的内容, 腾空成功的复制行
 Displays the contents of a file, skipping successive duplicate lines 

--------------------------------------------------------------------
文件压缩命令
--------------------------------------------------------------------

bunzip2        解压缩bzip2文件到其原始大小和格式
 
bzcat          显示一个bzip2压缩的文件
  
bzip2          压缩一个文件
  
compress   压缩一个文件
 
gunzip       解压缩一个gzip文件到其原始大小和格式
  
gzip           压缩一个文件
  
zcat          显示一个用gzip压缩的文件
 
--------------------------------------------------------------------
 存档命令
--------------------------------------------------------------------

tar 创建或解压缩一个存档文件

--------------------------------------------------------------------
文件定位
--------------------------------------------------------------------

apropos 查找man页面
 Searches the man page one-line descriptions for a keyword
 
slocate 在本地系统中查找文件
 Searches for files on the local system
 
whereis 显示一个程序,源代码或man页面的完整路径名
 Displays the full pathnames of a utility, source code, or man page 
 
which 显示你能运行的命令的完整路径名
 Displays the full pathname of a command you can run 

--------------------------------------------------------------------
用户和系统信息命令
--------------------------------------------------------------------
 
finger 显示关于用户,包括他们的全称的详细信息
 Displays detailed information about users, including their full names 
 
w 显示登录的用户的详细信息
 Displays detailed information about users who are logged in 
 
who 显示登录用户信息
 Displays information about users who are logged in
 
--------------------------------------------------------------------
用户通讯命令
--------------------------------------------------------------------
mesg 允许或拒绝使用write来传递消息
 Permits or denies messages sent by write 
 
write 向另一个登录用户发送消息
 Sends a message to another user who is logged in 
 
--------------------------------------------------------------------
其他命令
--------------------------------------------------------------------

date 显示当前日期和时间
 Displays the current date and time 
 
echo 复制当前参数输出到屏幕
 Copies its arguments to the screen
 
--------------------------------------------------------------------

你可能感兴趣的:(linux,shell,职场,休闲)