Shell Commands Flashcards

1
Q

pwd

A

Print working directory

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

cd~

A

Change directory to Home

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

cd

A

Change directory

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

mkdir

A

Make directory

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

rmdir

A

Remove directory

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

ls (LS)

A

List items in directory

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

pushd

A

Push directory to Temp list and go to new directory

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

popd

A

Pop back to last directory pushd to temp list

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

cp -r

A

Copy directory and or file to a new location.

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

ditto

A

Copy dir or file (creates new dir or merges with existing and retains resource forks and metadata)

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

Interrupt a running command

A

Control C (for cancel)

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

-v

A

Verbose mode; Terminal will type out what it is doing while it executes a command

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

less some_File.txt

A

View a file

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

cat

A

Print the whole file in terminal window without formatting.

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

mv

A

Move a file or directory to another location

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

Command K

A

Clear Terminal page

17
Q

clear

A

Move Terminal page up and out of sight

18
Q

touch

A

Create an empty file.

19
Q

cd ../../

A

go backwards in file path

20
Q

env

A

Look at our environment

21
Q

echo

A

Print some arguments

22
Q

exit

A

exit a program

23
Q

find

A

find files

24
Q

xargs

A

Execute some arguments

25
Q

grep

A

Find something in a file

26
Q

man

A

Read a manual page

27
Q

apropos

A

Find what manual page is appropriate

28
Q

export

A

export/set a new environment variable

29
Q

sudo

A

root user?)