Common Command Line Commands Flashcards
1
Q
change directory
A
cd
2
Q
List files and directories in current directory.
A
ls
3
Q
Display the path of the current directory.
A
pwd
4
Q
create a file
A
touch
5
Q
create a directory
A
mkdir
6
Q
Copy one or more files to a new location
A
cp
7
Q
Move or rename a file or directory
A
mv
8
Q
Make a new directory
A
mkdir
9
Q
Create a new file or update modification time if a file with that name exists
A
touch
10
Q
Remove one or more files or directories *cannot undo PERMANENT
A
rm
11
Q
Exit out of any executables process
A
ctrl + c
12
Q
create
A
-c
13
Q
zip
A
-z
14
Q
file
A
-f
15
Q
number of dashes for abbreviated flags
A
one dash