Shell Commands Flashcards

(32 cards)

1
Q

pwd

A

print working directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

hostname

A

my computer’s network name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

mkdir

A

make directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

cd

A

change directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ls

A

list directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

rmdir

A

remove directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

pushd

A

push directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

popd

A

pop directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

cp

A

copy a file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

mv

A

move a file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

less

Mac/Linux

A

page through a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

cat

Mac/Linux

A

print the whole file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

robocopy

A

robust copy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

more

A

page through file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

type

A

print whole file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

xargs

Mac/Linux

A

execute arguments

17
Q

forfiles

A

run command on lots of files

18
Q

find

Mac/Linux

19
Q

dir -r

20
Q

grep

Mac/Linux

A

find things inside files

21
Q

select-string

A

find things inside files

22
Q

man

Mac/Linux

A

read a manual page

23
Q

help

A

read manual page

24
Q

apropos

Mac/Linux

A

find what man page is appropriate

25
helpctr
find what man page is appropriate
26
env Mac/Linux
look at your environment
27
echo
print some arguments
28
set
export/set a new environment variable
29
export Mac/Linux
export/set a new environment variable
30
exit
exit the shell
31
sudo Mac/Linux
become super user root
32
runas
become super user root