Linux basic command
Sl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Command
(Primary)
logout
exit
pwd
ls
cd
mkdir
rm-r
cp
mv
clear
cat
cal
date & time
echo
^d
fc
history
eject
eject t
which
whereis
find
locate
slocate
man
27
help
info
28
whatis
29
makewhatis
30
uptime
wall
touch
write
26
31
32
33
Description
Out of terminal
Out of terminal
Look the present directory
Look the file /directory list
Change the directory
Make the directory
Erase the file
To copy file or directory
Change or move the
directory/file
Clear the skin
Show the file
Show the calendar
Show the date and time
Print some thing
Out of terminal
Show the command
Show the history
Eject cd rom
Close the cd rom
Search the file
Search the file
Search the file
Search the location of file
Search the location of file
Show the description of
command
Take help
Look the information of
command
Look the information of
command
Look the information of
command
To see the last update time
Give the message
Make the file
Give the message
Command (Same as
Pri.)
Sl
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Command
(Primary)
file
lsof
umask
uname
ln
clock
vi /proc/cpuinfo
free
fdisk
df h
timeconfig
install.log
ntsysv
top
lspci
modprobe e e1000
ifconfig
hostname
netconfig
route
ping
tracerout
ssh
telnet
arp
67
iptraf
useradd/adduser
userdel
su
groupadd
groupdel
chmod
chown
chgrp
68
umask
59
60
61
62
63
64
65
66
Description
What kind of file show that
Show the file list
Give the default value
See the carnal version of
system
Link the file
See the time
Cpu related
Ram related
Hard disk partition and
format
Space allocation
Selected the configurel of
graphical mode
See the install file
Look the various services
Resource utilization
List the pci devices
Will make the e1000 card
available for networking
To see the network ip
Look the hostname
Configure the network card
To see the route for your
host
Test the ip
Test the server
Security cell script
Correct by remote
To see the address
resolution protocol tables
Monitoring
Make the user
Delete the user
Go the super user
Add user group
Delete user group
Change the file mode
Change the ownership
Change the group warn
ship
Look the default value of
Command (Same as
Pri.)
Command
(Primary)
Sl
69
70
71
72
73
74
75
76
77
dd
passwd
passwd user
vi /etc/passwd
vi /etc/group
vi /etc/shadow
smbpasswd a user
passwd l user
smbpasswd d user
83
cat /etc/passwd |
grep user
newusers
ps
kill
killall
w
84
who
85
whoami
jobs
top
78
79
80
81
82
86
87
88
89
90
91
92
93
pstree
ps c named
mount /dev/sda1
/mnt
95
mount
/dev/hda1 /mnt
tar
compress
uncompress
97
98
Command (Same as
Pri.)
directory
To copy and convert file
Change the root password
Change the user password
See the password entry
See the user group
Look the shadow password
Add the user to smbpasswd
Locks the user
Disable the user to
smbpasswd
See the user information
Builds user from a file
Look the running service
Close the service
Close the service
Look at which terminal are
open
To see the which terminal
are open
Show the user name
See the background jobs
See the process with more
detail
Looks the pstree
Returns the process id of
nameda
Mount the cd
Mount the floppy
Mount the hard disk
mount /mnt/cdrom
mount /mnt/floopy
/etc/fstive
Mount t smbfs o
username=isp,password=1 //ns1/isp /mnt
94
96
Description
Usb (if the harddisk is ide,
otherwise use sdb1 , sdc1
or sdd1
Mount your c drive ( for ide)
Compress the file
Compress the file
Compress the file
This command will
mount the isp directory
from the host ns1.
Sl
99
10
0
10
1
Command
(Primary)
crypt
gunzip
quota
10
2
10
3
edquota
10
4
10
5
10
6
10
7
10
8
quotaof
10
9
11
0
11
3
11
4
11
6
11
8
11
9
12
0
12
1
12
2
12
3
12
4
12
5
12
6
12
7
12
8
13
0
quotacheck
Description
Crypt the file
Gun zip the file
Display disk usage and
limits
Edquota edit user quotas
Utility for checking and
repairing quota files.
quotaon
lpq
Show the printq
lpr
Send jobs to printer
lprm
lpstat
Remove a job form a
printer queue
Show print status
init 0
Halt
init1
Go to single mode
init 3
init 5
Go to multimode with
networking
Go to X-windows
init 6
Restart
startx
tty
Open operating system as
graphic mode
See the terminal
lynx
Web browser test based
vi
Test based editor
mc
Editor by graphically
bash
To see the base location
sh
To see the s.s cell
csh
See the corn cell
chsh
See the ch cell
fdisk-l
See the hard disk partition
cdisk
Command (Same as
Pri.)
Sl
13
1
13
2
13
3
13
4
13
5
Command
(Primary)
fdformat
Description
To format the floppy
badblocks
autorun
To make auto run
df-h
To see the free space of file
du -ch | grep total
Show the size of the
directory
13
6
13
7
13
8
13
9
e2label
14
0
14
1
14
2
fsck
Check the extendent file
system
Check and repair the file
tune2fs
File system check for ext2
swapon-a
14
3
mkswap
14
4
To make the swap space
available
To make the shawap
directory
Writes the partition tables
to a file named part.file
sfdisk -d /dev/hda >
part.file
Write the partition to the
sfdisk /dev/hdc <
disk form the file created
part.file
14
5
Command (Same as
Pri.)
chroot
Change system root
dumpe2fs
e2fsck-b
with the previous command
14
6
14
7
dd if=/dev/hda1 of=/dev/floppy bs=512
count=1
dd if=/dev/hda1 of=/dev/hdc
Copy the mbr to floppy
Copy the hda to hdc