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