Commands Flashcards
1
Q
How to see your path to the root directory
A
pwd
2
Q
delete file1.txt
A
rm file1.txt
3
Q
move file1.txt
A
mv file1.txt file2.txt
4
Q
create a dir1
A
mkdir dir1
5
Q
delete empty directory dir1
A
rm -d dir1
6
Q
delete populated dir2
A
rm -r
7
Q
change to dir1
A
cd dir1
8
Q
see all processes running
A
ps
9
Q
delete a single running process
A
kill [PID]
10
Q
delete all running processes called Run_Prog
A
killall Run_Prog
11
Q
create empty text file1
A
touch file1.txt
12
Q
list contents of current directory
A
ls
13
Q
what does “echo” do?
A
prints to the terminal
14
Q
how to create and move in to ex1.txt
A
vi ex1.txt
15
Q
edit in vi
A
press “i”