Linux System Info Flashcards

1
Q

Get hostname for

A

nbstat -A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Current username

A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Logged on users

A

w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

User information

A

who -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Last users logged on

A

last -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Process listing (top)

A

ps -ef

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Disk usage (free)

A

df -h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Kernel version/CPU info

A

uname -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Mounted file systems

A

mount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Show list of users

A

getent passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Add to PATH variable

A

PATH=$PATH:/home/mypath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Kills process with

A

kill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Shows OS info

A

cat /etc/issue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Show OS version info

A

cat /etc/*release*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Installed pkgs (Redhat)

A

rpm –query -all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Install RPM

A

rpm -ivh *.rpm

17
Q

Remove RPM

A

rpm -e *.rpm

18
Q

Installed pkgs (Ubuntu)

A

dpkg -get-selections

19
Q

Installed DEB

A

dpkg -I *.deb

20
Q

Remove DEB

A

dpkg -r *.deb

21
Q

Installed pkgs (Solaris)

A

pkginfo

22
Q

Show location of executable

A

which

23
Q

Disable , force bash

A

chmod 750