OSX terminal Flashcards

1
Q

This command prints the location of your current working directory.

A

pwd

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

Used to print contents of a directory, by default it lists contents of current working directory

A

ls

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

move around with

A

cd

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

to print the contents of a file to the screen(

A

cat

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

copy files and directories with this command

A

cp

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

command is used to move or rename directories and files

A

mv

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

command is used to remove directory or files.

A

rm

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

used to make a new directory in linux

A

mkdir

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

remove a directory,

A

rmdir

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

Linux command allows you to run programs or other commands with administrative privileges

A

sudo

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

Takes you to the root directory.

A

cd/

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

Takes you up one directory level

A

cd..

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

Takes you to the previous directory

A

cd-

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

Removes an empty directory.

A

rmdir (“remove directory”) –

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

Removes a directory along with its content.

A

rm -r (“remove recursively”) –

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

command displays all of your previous commands up to the history limit.

A

history

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

command displays information about the disk space usage of all mounted filesystems.

A

df

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

command displays the size of a directory and all of its subdirectories.

A

du

19
Q

Displays the amount of free space available on the system.

A

free

20
Q

Provides a wide range of basic information about the system.

A

uname -a

21
Q

Displays the processes using the most system resources at any given time. “q” can be used to exit.

A

top

22
Q

how to exit from top command?

A

q

23
Q

command displays a “manual page”

A

man

24
Q

Move cursor to beginning of line

A

Ctrl + A

25
Q

Move cursor to end of line

A

Ctrl + E

26
Q

Clears the entire current line

A

Ctrl + U

27
Q

Clears the command from the cursor right

A

Ctrl + K

28
Q

Delete the word before the cursor

A

Ctrl + W

29
Q

Allows you to search your history for commands matching what you have typed

A

Ctrl + R

30
Q

Kill the current process

A

Ctrl + C

31
Q

Suspend the current process by sending the signal SIGSTOP

A

Ctrl + Z

32
Q

Clears the terminal output

A

Ctrl + L

33
Q

Move forward one word

A

Alt + F

34
Q

Move backward one word

A

Alt + B

35
Q

Copy the highlighted command to the clipboard

A

Ctrl + Shift + C

36
Q

Paste the contents of the clipboard

A

Ctrl + Shift + V or Shift + Insert

37
Q

Used to complete the command you are typing. If more than one command is possible, you can press it multiple times to scroll through the possible completions.

A

tab

38
Q

a shortcut to home directory

A

~

tilday key

39
Q

formatted listing with hidden files

A

ls -al

40
Q

delete file

A

rm ‘filename’

41
Q

display your currently active processes

A

ps

42
Q

show the current date and time

A

date

43
Q

show this month’s calendar

A

cal