OSX terminal Flashcards

(43 cards)

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.

19
Q

Displays the amount of free space available on the system.

20
Q

Provides a wide range of basic information about the system.

21
Q

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

22
Q

how to exit from top command?

23
Q

command displays a “manual page”

24
Q

Move cursor to beginning of line

25
Move cursor to end of line
Ctrl + E
26
Clears the entire current line
Ctrl + U
27
Clears the command from the cursor right
Ctrl + K
28
Delete the word before the cursor
Ctrl + W
29
Allows you to search your history for commands matching what you have typed
Ctrl + R
30
Kill the current process
Ctrl + C
31
Suspend the current process by sending the signal SIGSTOP
Ctrl + Z
32
Clears the terminal output
Ctrl + L
33
Move forward one word
Alt + F
34
Move backward one word
Alt + B
35
Copy the highlighted command to the clipboard
Ctrl + Shift + C
36
Paste the contents of the clipboard
Ctrl + Shift + V or Shift + Insert
37
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.
tab
38
a shortcut to home directory
~ | tilday key
39
formatted listing with hidden files
ls -al
40
delete file
rm 'filename'
41
display your currently active processes
ps
42
show the current date and time
date
43
show this month's calendar
cal