Commands Flashcards

1
Q

How to see your path to the root directory

A

pwd

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

delete file1.txt

A

rm file1.txt

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

move file1.txt

A

mv file1.txt file2.txt

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

create a dir1

A

mkdir dir1

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

delete empty directory dir1

A

rm -d dir1

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

delete populated dir2

A

rm -r

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

change to dir1

A

cd dir1

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

see all processes running

A

ps

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

delete a single running process

A

kill [PID]

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

delete all running processes called Run_Prog

A

killall Run_Prog

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

create empty text file1

A

touch file1.txt

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

list contents of current directory

A

ls

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

what does “echo” do?

A

prints to the terminal

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

how to create and move in to ex1.txt

A

vi ex1.txt

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

edit in vi

A

press “i”

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

get out of edit mode in vi

A

esc

17
Q

save in vi

A

:w

18
Q

quit in vi

A

:q

19
Q

for ping, the _ the number, the better the connection

A

lower

20
Q

clear the console

A

clear

21
Q

how to display the last 5 commands used

A

history-5

22
Q

how to find how ls work

A

whatis ls

23
Q

how to find out where python program is located

A

which python

24
Q

how to check current memory usage

A

top

25
Q

save and quit in vi

A

:x

26
Q

what is a kernal?

A

central component of an operating system that manages operations of computer and hardware.

27
Q

what are the 3 main parts of a Unix OS?

A

the kernel, the shell, and user commands and applications

28
Q

what order do these go in in Unix: Shell, app, kernel, hardware?

A

app - shell - kernel - hardware

29
Q

What is the DSN

A

Deep Space Network

30
Q

Where are the antennas for the DSN?

A
  • Mojave desert
  • outside Madrid Spain
  • outside Canberra Australia
31
Q

If a spacecraft is past the _, the DSN is the only practical way to contact it

A

Moon

32
Q

What is the dark room?

A

The control center for the DSN

33
Q

_ _ get passed around at mission critical events

A

Lucky peanuts

34
Q

The darkroom is called the _ of the _

A
  • center
  • universe
35
Q

how to change back to root directory in one command

A

cd ~

36
Q

move file1.txt to directory [dir2]

A

mv file1.txt /dir2