General Commands Flashcards

1
Q

pwd

A

Print working directory

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

ls

A

List directory

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

ls -a

A

List hidden files in directory

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

ls –all

A

List hidden files in directory

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

ls -l

A

List long list of information on directory files

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

ls -la

A

List long list of all files including hidden information

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

filename@

A

Shortcut file or folder

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

filename.sh*

A

Executable file

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

cd ..

A

Change directory

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

mkdir

A

Make directory

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

rmdir

A

Remove directory

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

rm

A

Delete files and subdirectory and files. “No Warning if directory contains files.”

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

ls -r

A

Reverse the files’ order of listing

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

cat

A

Display the content of a file.

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

Ctrl + Alt + T

A

Brings up the Bash Shell Terminal

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

What does “cat” abbreviate?

A

Catenate

17
Q

Catenate means

A

Arrange a string of characters into a chained list.

18
Q

Ctrl + Alt + D

A

End of file command

19
Q

What command prints the contents of a file to the screen?

A

cat

20
Q

cat > filename.txt, does what?

A

Creates the file named “filename.txt” and allows user to enter text into the file.

21
Q

” > “ Means what?

A

Redirection

22
Q

”&raquo_space; “ Means what?

A

Redirection appending a file.

23
Q

“cat filename1.txt filename2.txt > filename3.txt” does what?

A

Adds the content to filename1 and filename3 to a newly created file called filename3.

24
Q

“cat filename1.txt&raquo_space; filename2.txt” does what?

A

Appends flilname2.txt with the contents of filename1.txt

25
Q

“mkdir -p” does what?

A

Make a directory where parents don’t exist.

26
Q

“mkdir – parents” does what?

A

Make a directory where parents don’t exist.

27
Q

“mkdir -p /kevin/desktop/{math, english}” does what?

A

Creates both math and english directories at the same time on the desktop.

28
Q

“ls -R”

A

Lists all files and directories in the current directory and off spring directories and files.

29
Q

“mv” command does what?

A

Renames files and folders

30
Q

“mv -i” means what?

A

Rename interactive mode.

31
Q

“less” command does what?

A

Displays the contents of text files. Has more features.

32
Q

“more” command does what?

A

Displays the contents of text files. Has less features.

33
Q

“shotwell” command does what?

A

Opens the Shotwell photo view client.

34
Q

How do you deal with spaces?

A

Use auto-complete by using the TAB button.

35
Q

The “cal” command display what?

A

Calender