Terminal (Linux/macOS) Flashcards
Learn common commands used in macOS Terminal (26 cards)
1
Q
CLI
A
Command Line Interface
2
Q
pwd
A
print working directory
3
Q
hostname
A
my computer’s network name
4
Q
mkdir
A
make directory
5
Q
cd
A
change directory
6
Q
rmdir
A
remove directory
7
Q
ls
A
list directory
8
Q
pushd
A
push directory
9
Q
popd
A
pop directory
10
Q
cp
A
copy
11
Q
mv
A
move
12
Q
less
A
page through a file (c.f. more)
13
Q
cat
A
print the whole file (c.f. type)
14
Q
xargs
A
excute arguments
15
Q
find
A
find files (c.f. dir -r)
16
Q
grep
A
find things inside files (c.f. select-string)
17
Q
man
A
read a manual page (c.f. help)
18
Q
apropos
A
find what manual page is appropriate (c.f. helpctr)
19
Q
env
A
look at your environment
20
Q
echo
A
print some arguments
21
Q
export
A
export/set a new environment variable (c.f. set)
22
Q
exit
A
exit the shell
23
Q
sudo
A
DANGER! become superuser root DANGER! (c.f. runas)
24
Q
chown
A
change file/directory ownership
25
chmod
change file/directory permissions
26
touch
make an empty file (c.f. New-Item)