Shell Commands Flashcards
1
Q
pwd
A
Print working directory
2
Q
cd~
A
Change directory to Home
3
Q
cd
A
Change directory
4
Q
mkdir
A
Make directory
5
Q
rmdir
A
Remove directory
6
Q
ls (LS)
A
List items in directory
7
Q
pushd
A
Push directory to Temp list and go to new directory
8
Q
popd
A
Pop back to last directory pushd to temp list
9
Q
cp -r
A
Copy directory and or file to a new location.
10
Q
ditto
A
Copy dir or file (creates new dir or merges with existing and retains resource forks and metadata)
11
Q
Interrupt a running command
A
Control C (for cancel)
12
Q
-v
A
Verbose mode; Terminal will type out what it is doing while it executes a command
13
Q
less some_File.txt
A
View a file
14
Q
cat
A
Print the whole file in terminal window without formatting.
15
Q
mv
A
Move a file or directory to another location