File Operations Flashcards

1
Q

Native filesystems are ?

A

+ ext3
+ ext4
+ squashfs
+ btrfs

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

Important files required to run the system are stored on ?

A

root or /

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

A mount point is ?

A

A directory where the filesystem is to be grafted on.

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

To mount a partition, use command ?

A

sudo mount dir1 dir2

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

To unmount a partition, use command ?

A

sudo umount dirName

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

To know static information about the filesystem ?

A

fstab

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

To display all presently mounted filesystems ?

A

mount

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

To display information about mounted filesystems, including the filesystem type, and usage statistics about currently used and available space.

A

df -Th

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

NFS stands for ?

A

Network Filesystem

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

NFS server is ?

A

A computer that has a filesystem sit on its disk and this computer makes that filesystem available to other computers on the network.

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

NFS client is ?

A

A computer that accesses the filesystem on a NFS server.

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

The /bin directory contains what ?

A

Executable binaries, essential commands used to boot the system and essential commands required by all the users such as cat, cp, ls, mv, ps and rm.

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

The /sbin directory constains what ?

A

Essential binaries related to system administration such as fsck and ip.

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

/proc filesystem is also called ?

A

pseudo-filesystem

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

/dev filesystem contains ?

A

Device nodes - pseudo file used by most software and hardware devices except network devices.

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

/var filesystem contains ?

A
Files that are expected to change in size and content as the system is running.
\+ System log files : /var/log
\+ Packages and database files: /var/lib
\+ Print queue : /var/spool
\+ Temporary files: /var/tmp
17
Q

/etc filesystem contains ?

A

System configuration files.

18
Q

/boot directory contains ?

A

Essential files needed to boot the system.

19
Q

/lib contains ?

A

Libraries for essential programs in /bin and /sbin.

20
Q

/usr contains ?

A

Multi-use applications, utilities and data, non essential programs and scripts.

21
Q

/tmp contains ?

A

Temporary files.

22
Q

diff is used to ?

A

Comparing files and directories.

23
Q

To compare 3 files at once, use ?

A

diff3

24
Q

A patch files does ?

A

Contains the changes required to update an older version of a file to a new one.

25
Q

To determine the real nature of a file in Linux, use command ?

A

file fileName

26
Q

To copy a file ?

A

cp source destination

27
Q

To recursively copy one directory tree to another (both remotely and locally) ?

A

rsync source destination

28
Q

Commands to perform compression in Linux ?

A

gzip, bzip2, xz, zip

29
Q

To compress all files in folder in Linux ?

A

gzip *

30
Q

To decompress a file named file.txt.gz in Linux ?

A

gunzip file.txt.gz or gzip -d file.txt.gz

31
Q

To examine and decompress archives from other operating system ?

A

zip

32
Q

What is archive in Linux ?

A

The process of combining multiple files and directories from same or different sizes into one file.

Archiving is usually used as part of a system backup or when moving data from one system to another.

33
Q

To create or extract files from an archive file ?

A

tar