*Nix OS Flashcards

This deck covers basic *nix commands from the command line

1
Q

what command will create and empty .txt file?

A

touch

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

what command will show a listing of the present directory/folder?

A

ls

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

which option of the ls command will show all files

A

-a

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

which option of the ls command will list contents in long format?

A

-l

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

What command clears the contents of your terminal display?

A

clear

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

What is the command to delete a file?

A

rm

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

What do you type in to move to the parent directory?

A

cd ..

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

What command will return the working directory you are presently in?

A

pwd

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

What command is used to change directories?

A

cd

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

What command is used to show/configure network interface parameters?

A

ifconfig

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

What command will force a program/process to quit?

A

kill

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

What command is used to change ownership of a file?

A

chown

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

What command is used to change file permissions?

A

chmod

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

What command is used to copy a file?

A

cp

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

What command creates an empty directory?

A

mkdir

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

What command displays your current username?

A

whoami

17
Q

What command shows you CPU and memory utilization for running processes?

A

top

18
Q

What command allows you to open and view a file one page at a time?

A

‘more’ or ‘less’

19
Q

Which command(s) show users that are logged in?

A

who

20
Q

What command is used to change a file name?

A

mv

21
Q

What is the command to switch to the root user account?

A

su

22
Q

What is the command to change your password?

A

passwd

23
Q

What command is used to display your previous commands?

A

history or the up arrow key

24
Q

What is the command to run a program with elevated permissions?

A

sudo

25
Q
A