Chapter 4 - Managing Files Flashcards

(34 cards)

1
Q

ls -lh

A

Display file and subdirectory metadata, which includes file type, file access permissions, hard link count, file owner, file’s group, modification date and time, and filename in a human readable format

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

ll

A

means ls -l

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

alias

A

An alias at the Linux command line is simply a short command that represents another, typically complicated, command

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

file command

A

shows you the type of file

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

file globbing/wildcard expansion

A

using * or ? with a filename in a command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • in file globbing
A

represents any alphanumeric character

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

? in file globbing

A

a single character for file globbing

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

^ in file globbing

A

negate the character selection by putting it before that character

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

how to zip a file?

A

gzip [filename]
zip [filename]
bzip2 [filename]
xz [filename]

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

cpio -o

A

cpio used to make archive files
-o flag Creates an archive by copying files into it. Called copy-out mode.

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

cpio -i

A

-i flag Copies files from an archive or displays the files within the archive, depending upon the other options employed. Called copy-in mode.

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

cpio –no-absolute-filenames

A

Designates that only relative path names are to be used. (The default is to use absolute path names.)

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

how to create a tarball

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

tar -c

A

Creates a tar archive file. The backup can be a full or incremental backup, depending on the other selected options.

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

tar -j

A

Compresses tar archive file into a tarball using bzip2.

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

tar -J

A

Compresses tar archive file into a tarball using xz.

17
Q

tar -z

A

Compresses tar archive file into a tarball using gzip.

18
Q

tar -f

A

designates the archive filename

19
Q

what is the sticky bit?

20
Q

compression tools

21
Q

archiving tools

22
Q

tools that do compression AND archiving

25
what does this umask result mean? 00002?
26
shares same inode
hard link
27
stale link
28
features of a hard link
29
features of a soft link
30
(about dd)
31
ways to change permission of a file?
chmod umask
32
octal of this permission: rwxrw-rw
33
ways to change the owner of a file?
chown
34