Linux Filesystem Commands Flashcards

1
Q

cp command

A

Copies files

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

mv command

A
  • Moves & renames files/directories
  • Does not move the data on the HD if new dest is on the same PC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ln origname linkname

A

Create a hard link to non-directory file

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

ln -s origname linkname

A

Create symbolic link to a file or directory file

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

Classes of Wildcard in Linux

A
  • ?
  • *
  • [value]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

’?’ wild card

A

Stand in for a single character

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

‘*’ wild card

A

Match any character, set of characters, or none at all.

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

’[value]’

A

Match any character in the set of brackets

b[ao][lw]l will match for
bowl
ball
but not bull

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

mkdir command

A

create new directory

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

rmdir command

A
  • Remove an empty directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

rmdir -p command

A
  • Remove a directory
  • Containing only directory files
  • Will not work if it contains any non-directory files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

rm -r command

A
  • Remove file
  • Recursive, remove directory files containing non-directory files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

touch command

A
  • Create a non-directory file
  • Can update and existing directory’s time stamp only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

cp command

A
  • Copy a file
  • -r or -a to copy a directory, all contents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

mv command

A
  • move directories or files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

less command

A

Displays file contents or commands output one page at a time

17
Q

tar -r command

A

Untar a tar archive file