Shell Workshop Flashcards

1
Q

Shell

A

Simply the outermost layer of an operating system. Designed to provide a way for you to interact with the tools and services that your operating system provides

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

Terminal

A

Program we use to interact with the shell

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

GUI

A

Graphical User Interaface

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

Graphical Shells (GUI)

A

Interact with the OS with things like windows and buttons

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

Text Shell

A

Uses text commands to interact with the OS, called a command line interface (CLI)

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

BASH

A

One of the most widely used shells

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

ls

A

List contents of the current directory

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

cd

A

Change directory

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

cd ..

A

Go up one directory (to the parent)

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

ls ..

A

List the contents of the parent directory

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

pwd

A

Print working directory (whatever directory the shell is currently looking at)

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

ls .

A

Lists the working directory (current directory)

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

ls ~

A

Lists the home directory

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

Relative Path

A

The path relative to the directory you are currently on

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

Absolute Path

A

The path relative to the home directory (full path)

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

ls -l

A

Detailed list (long format)

17
Q

ls *(path)

A

Lists all files whose name match some pattern end

18
Q

ls (name)*

A

Lists all files whose names start with some term

19
Q

ls (name)

A

Lists all files whose name contains some term (middle)

20
Q

mkdir

A

Make a directory. Ex mkdir Documents/Books

21
Q

mv

A

Move from and to Ex. mv Documents/*.txt Documents/Books

22
Q

curl ‘URL’

A

See URL

23
Q

curl -L ‘URL’

A

See source code for webpage. Following redirects

24
Q

curl -L -o some_file.html ‘URL’

A

Redirect and output to file (-o) to some_file.html at ‘URL’

25
Q

cat filename.txt

A

Display the full contents of the file filename.txt

26
Q

less filename.txt

A

Displays the output in a format that allows you to search and scroll

27
Q

rm filename.txt

A

remove the filename.txt file

28
Q

rm -i

A

interactive remove (promts)

29
Q

rmdir

A

remove the directory