LINUX常用基础命令

    The UNIX operating system is made up of three parts; the kernel, the shell and the programs.

   进程是由唯一的PID(进程标识符)标识的执行程序。 文件是数据的集合。它们是由用户使用文本编辑器,运行的编译器等创建的。

CommandMeaning
lslist files and directories
ls -alist all files and directories
mkdirmake a directory
cd directorychange to named directory
cdchange to home-directory
cd ~change to home-directory
cd ..change to parent directory
pwddisplay the path of the current directory
cp file1 file2copy file1 and call it file2
mv file1 file2move or rename file1 to file2
rm fileremove a file
rmdir directoryremove a directory
cat filedisplay a file
less filedisplay a file a page at a time
head filedisplay the first few lines of a file
tail filedisplay the last few lines of a file
grep 'keyword' filesearch a file for keywords
wc filecount number of lines/words/characters in file
command > fileredirect standard output to a file
command >> fileappend standard output to a file
command < fileredirect standard input from a file
command1 | command2pipe the output of command1 to the input of command2
cat file1 file2 > file0concatenate file1 and file2 to file0
sortsort data
wholist users currently logged in
*match any number of characters
?match one character
man commandread the online manual page for a command
whatis commandbrief description of a command
apropos keywordmatch commands with keyword in their man pages
ls -laglist access rights for all files
chmod [options] filechange access rights for named file
command &run command in background
^Ckill the job running in the foreground
^Zsuspend the job running in the foreground
bgbackground the suspended job
jobslist current jobs
fg %1foreground job number 1
kill %1kill job number 1
pslist current processes
kill 26152kill process number 26152
gzip science.txtZip of a file
gunzip science.txt.gzTo expand the file, use the gunzip command.
historyordered list of all the commands that you have entered.
find . -name "*.txt" -printThis searches through the directories for files and directories

FormSite: http://www.ee.surrey.ac.uk/Teaching/Unix/index.html

Linux中文教程:https://www.runoob.com/linux/linux-tutorial.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值