S.N O Command Options Purpose Comme Nts
S.N O Command Options Purpose Comme Nts
N
O
Command
1 echo $USER
whoami
2 Cat /etc/redhat-release
3 uname
4 init
5
6
7
8
9
10
11
12
13
dmidecode
cat /proc/cpuinfo
cat /proc/meminfo
last
last reboot
lsblk
pwd
fdisk -l
parted <devicename>
Print free
q
14
15
16
17
cat /proc/partitions
echo $SHELL
chsh
cat /proc/filesystem
18
19
20
21
arch
tput set 'n'
tput bold
tput reset
Options
Purpose
To check the user logged in
n: 1 - 9
22 pwck
23 grpck
24 passwd -S <user>
-d
passwd <user>
25 useradd <user>
-u
-g
-c
-s
Comme
nts
26 usermod <user>
To modify user
Same options
as above
applicable
27 chage -l <user>
28 userdel <user>
29 Vim /etc/default/useradd
31 su <user>
32 su - <user>
30 Vim /etc/login.def
33 pwunconv
34 pwconv
gnome-session-save --force
35 -logout
36 history -c
37 history -r
38 .bash_history
39
40
41
42
43
echo $HISTSIZE
Vim /etc/profile
source /etc/profile
Alt+U
Alt+l
44
45
46
47
!!
file
tac <filename>
stat <filename>
Proxy is used to share the
48 internet.
49 w
50 ps -av
51 chvt 1
52 chvt 2 - 6
53 startx
54 /etc/inittab
chvt 7
To switch to grahical
terminal
Virtual consoles
To switch to grahical
console
Config file for the console