Linux System Info Flashcards
1
Q
Get hostname for
A
nbstat -A
2
Q
Current username
A
id
3
Q
Logged on users
A
w
4
Q
User information
A
who -a
5
Q
Last users logged on
A
last -a
6
Q
Process listing (top)
A
ps -ef
7
Q
Disk usage (free)
A
df -h
8
Q
Kernel version/CPU info
A
uname -a
9
Q
Mounted file systems
A
mount
10
Q
Show list of users
A
getent passwd
11
Q
Add to PATH variable
A
PATH=$PATH:/home/mypath
12
Q
Kills process with
A
kill
13
Q
Shows OS info
A
cat /etc/issue
14
Q
Show OS version info
A
cat /etc/*release*
15
Q
Installed pkgs (Redhat)
A
rpm –query -all