Function & Symbol Flashcards

1
Q

Print Working Directory

A

pwd

[Thes-Macbook-Pro:~ Main$ pwd

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

My Computer’s Network Name

A

hostname

[Thes-MacBook-Pro:~ hostname

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

Make Directory

A

mkdir

Thes-MacBook-Pro:~ mkdir foldername
If you want to setup a folder within the current directoryr:
Thes-MacBook-Pro:~ mkdir foldername/filename
If you want to setup a complete path through folders:
Thes-MacBook-Pro:~ mkdir foldername/filename/2ndfilename/3rdfilename

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

Change Directory

A

cd

Thes-MacBook-Pro:~ cd foldername
Thes-MacBook-Pro:~ pwd
Thes-MacBook-Pro:~ foldername
Thes-MacBook-Pro:~ cd filename
Thes-MacBook-Pro:~ pwd
Thes-MacBook-Pro:~ foldername/filename
To back out of a path:
Thes-MacBook-Pro:~ cd ../..

Will take you to desired directory and path. When backing out of a path each ‘../’ will back you out by one and you can use more than one set at a time.

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

List Directory

A

ls

Thes-MacBook-Pro:~ ls

Lists all the contents in your current directory.

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

Remove Directory

A

rmdir

Thes-MacBook-Pro:~ rmdir 2ndfilename

Will remove the directories and folders you want.

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

Push Directory

A

pushd

Thes-MacBook-Pro:~ pushd

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

Pop Directory

A

popd

Thes-MacBook-Pro:~ popd

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

Copy a File or Directory

A

cp

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

Move a File or Directory

A

mv

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

Page Through a File

A

less

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

Print The Whole File

A

cat

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

Execute Arguments

A

xargs

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

Find Files

A

find

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

Find Things Inside Files

A

grep

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

Read a Manual Page

A

man

17
Q

Find What Man Page is Appropriate

A

apropos

18
Q

Look at Your Environment

A

env

19
Q

Print Some Arguments

A

echo

20
Q

Export/Set a New Environment Variable

A

export

21
Q

Exit The Shell

A

exit

22
Q

Create Empty File

A

Thes-MacBook-Pro:~ touch filename.txt

Creates blank file within your directory.