Chapter 1 Flashcards

1
Q

BASH

A

Bourne-again shell

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

What is the history command?

A

Shows you all the commands you typed into the terminal.

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

What command will show you the day, month, year and current time.

A

date

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

What does the up arrow do?

A

Recalls the previous commands.

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

What does the down arrow do?

A

Scrolls down the list of previous commands.

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

How do you cancel a process?

A

ctrl + c

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

What will the cd - command do?

A

Brings you back to the previous folder you were in. This doesn’t have to be a parent or subfolder.

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

ctrl + u will?

A

Delete from the cursor to the start of the line.

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

option + right arrow will?

A

Move the cursor to the right one word.

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

What is the home folder?

A

Holds personal directories for regular users.

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

ctrl + E or ^E will?

A

Move the cursor to the end of the line.

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

What are the short cut keys to copy something from the terminal?

A

cmd + c

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

What does the cd command stand for and what does it do on its own?

A

Stands for change directory.

cd on its own will bring you back to your home directory.

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

What is the command to bring up a calendar?

A

cal

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

What short cut command brings the cursor left one word?

A

option + left arrow

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

ls -l will?

A

Will bring up files and folders in a long list, along with information.

17
Q

What is this option? ls -lF

A
  • F Puts an indicator character on each of the listed items. (a directory would have / )
18
Q

What short cut keys will paste to the terminal?

A

cmd + v

19
Q

What are the short cut keys bring up a list of All the commands you have typed in the terminal (even from previous sessions)

A

ctrl + R

20
Q

What is the short cut key to delete from the cursor to the end of the line?

A

ctrl + k

21
Q

ls -R will?

A

-R is the recursive option and will list files / folders and SUBFOLDERS.

22
Q

What is the -h option? Thats used with ls -lh

A

The -h option must be used with the -l option. ls -lh
Human readable changes the file sizes from bytes to kb, mg, gb tb.

23
Q

ls -F will?

A

Identify folders, executables etc

24
Q

What is this option?
ls -lt

A

-t Sorts list by modification time.

25
Q

What is this option?
ls -lS

A

-S Sorts list by file size.

26
Q

What is this option?
ls -r

A

-r Sorts list in reverse order.