linux most commands is located in /bin or /usr/bin, usage:--help/-h .
v{version,verbose},a{all} -h(help,human readable)
1.File management:
ls(list :List information about the FILEs (the current directory by default):-a (show hidden file) -l(list detail) -AS(ascend),-R(recursive))
cp(copy ELF 64-bit LSB executable) /bin
mv(move or rename)
file(Determine type of FILEs, -v,)
pwd(present work directory)
cd(change directory:~ user directory, -- [$OLDPWD])
whereis (Locate the binary, source, and manual-page files for a command,-b binary only, -s sources only,-f)
2. File view and edit :
cat filename/ head -n filename /tail -n filename
echo(print message or enviroment variable value )
rm -rf (remove file or directory)
rmdir (remove empty directory)
mkdir(make directory)
3.System command
startx
uname -a、-v (print certain system information.
4. Disk management:
df -h(Show information about the file system on which each FILE resides,or all file systems by default human-readable)
du -h(Summarize disk usage of the set of FILEs, recursively for directories human-readable)
lsblk(list block)
5.other:
history(list input command list :-c clear)
hash -r(remove records)
lsmod(list module mount status)
6. text search :
grep (ELF 64-bit LSB shared object)
find {-name ,-iname(ignore lower upper), -size,-type
7.Device Management:
lspci(list peri commnent interface).
8. zip:
zipinfo(zip information):
9.network command:
netstat -ano |grep portname,-i(network adapter list)
ping -c(count) 4 -i(interval) 3 www.linuxcool.com
ifconfig(down-close,up-start)
10. install command
1) apt-get
update
install (httpd,nginx)
remove(vsftpd) ,–purge remove packagename
本文汇总了Linux系统中常用的文件管理、查看与编辑、系统、磁盘管理等命令及其使用方法,包括ls、cp、mv等基本操作命令,以及df、du等磁盘管理命令,适合初学者快速上手。
264

被折叠的 条评论
为什么被折叠?



