Professional Documents
Culture Documents
Unix/Linux Command Reference: File Commands
Unix/Linux Command Reference: File Commands
File Commands
1.
ls
Directory listing
2.
ls -al
3.
ls -lt
4.
cd dir
5.
cd
6.
pwd
7.
mkdir dir
8.
cat >file
9.
more file
14. rm file
15. rm -r dir
16. rm -f file
Process management
1.
ps
2.
top
Unix/LinuxCommandReference
3.
kill pid
4.
killall proc
5.
pkill pattern
6.
bg
7.
fg
8.
fg n
File permission
1.
4-read(r)
2-write(w)
1-execute(x)
Searching
1.
2.
3.
command | grep
pattern
4.
locate file
5.
6.
pgrep pattern
System Info
1.
date
2.
cal
3.
uptime
4.
5.
whoami
Unix/LinuxCommandReference
6.
finger user
7.
uname -a
8.
cat /proc/cpuinfo
Cpu information
9.
cat proc/meminfo
Memory information
11. df
12. du
13. free
Compression
1.
2.
tar xf file.tar
3.
4.
5.
6.
7.
gzip file
8.
gzip -d file.gz
Network
1.
ping host
2.
whois domain
3.
dig domain
4.
dig -x host
5.
wget file
Download file
6.
wget -c file
Unix/LinuxCommandReference
Shortcuts
1.
ctrl+c
2.
ctrl+z
3.
ctrl+d
4.
ctrl+w
5.
ctrl+u
6.
ctrl+r
7.
!!
8.
exit
Unix/LinuxCommandReference