Linux commands Flashcards

1
Q

Displays current username

A. id
B. hostname
C. whoami

A

whoami

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

Returns users identity

a. whoami
b. id
c. uname

A

id

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

Sets or prints the name of current host system

a. uname
b. Ip
c. hostname

A

hostname

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

Prints basic information about the operating system name and system hardware

a. uname
b. netstat
c. ps

A

uname

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

Returns working directory name

A

pwd

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

Used to assign or to view an address to a network interface and/or configure network interface parameters

A

ifconfig

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

A utility to show or manipulate routing, network devices, interfaces and tunnels

A

Ip

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

Shows network status

a. who
b. ss
c. netstat

A

netstat

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

Another utility to investigate sockets

a. ss
b. isof
c. ps

A

ss

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

Shows process status

a. who
b. ps
c. env

A

ps

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

Displays who is logged in

a. isusb
b. ss
c. who

A

who

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

Prints environment or sets and executes command

a. ps
b. env
c. Isblk

A

env

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

Lists block devices

a. Isblk
b. who
c. Isof

A

lsblk

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

Lists USB devices

a. Isusb
b. Isof
c. who

A

lsusb

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

Lists opened files

a. env
b. Isof
c. netstat

A

lsof

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

Lists PCI devices

a. env
b. Isof
c. Ispci

A

lspci