Mac Terminal Commands Flashcards
(30 cards)
1
Q
PWD
A
PRINT WORKING DIRECTORY
2
Q
Cd johnny
A
Change directory to johnny
3
Q
Mkdir johnny
A
Make directory johnny
4
Q
Cd ~
A
Change directory to home
5
Q
hostname
A
My computer’s network name
6
Q
Ls
A
List directory
7
Q
rmdir
A
Remove directory
8
Q
pushd
A
Push directory
9
Q
popd
A
Pop directory
10
Q
cp
A
Copy file or directory
11
Q
mv
A
Move file or directory
12
Q
Less
A
Page through a file
13
Q
cat
A
Print the whole file
14
Q
xargs
A
Execute arguments
15
Q
find
A
Find files
16
Q
grep
A
Find things inside files
17
Q
man
A
Read a manual
18
Q
apropos
A
Find what man page is appropriate
19
Q
env
A
Look at your environment
20
Q
echo
A
Print some arguments
21
Q
Export
A
Export /set a new environment argument
22
Q
exit
A
Exit the shell
23
Q
robocopy
A
Robust copy
24
Q
more
A
Page through a file
25
type
Print the whole file
26
forfiles
Run a command on lots of files.
27
dir -r
Find files
28
Select-string
Find things inside files
29
help
Read a manual page
30
runas
DANGER become a super user root DANGER. :-))?