Unix/Linux File Systems and Commands
Covers Unix/Linux operating system fundamentals including file systems, inodes, file permissions, storage devices, and essential command-line utilities
Questions
Grep usually takes the input from another command (usually content of file or folders etc) where Find works without taking input from another command
- True
- False
The tar command archives and extracts files to and from a single file called a tarfile.
- Yes, Correct
- No This is for JAR command
- TAR and JAR are same
- none of these
which is faster
- cpio
- mv
- cpip
- cp
Default time in UNIX is called
- EPOCH
- JULIAN
- Both the above
- None of the above
current user -> test, base user -> root which of the following is correct
- whoami will display root
- who am i will display test
- who am i will display root
- None of the above
script command is
- used to record/spool your session
- create a new login session
- No such command exists
- a & b are correct
giving the command cd , what will be the action of the shell
- it will change directory to user home directory
- it will give out an error
- it will remain silent
- both a & b
how to create a directory test and its child subtest using a single command
- mkdir /test/subtest
- mkdir -P /test/subtest
- mkdir -p /test/subtest
- none of the above
will the command cd* work
- Yes under certain circumstances.
- No.
- I Dont Know
- cd command will not work with * switch
In Unix, files on a file-system are accessible before mouting ?
- Yes, they are visible
- No, files are not visible before mouting
- Sometimes they are visible
- It depends on booting option
- It depends on file system
File access permission 100 implies that:
- Read only access for Others
- Read only access for Group
- Read only access for Owner
- Read only access for everyone
inode contains following information
- File mode
- file size
- File Creation time
- File access time
- File links count
- all of the above
inode contains ____ direct pointers to data blocks of file data
- 10
- 12
- 15
- 8
Blocks pointing to data blocks (single indirect, double indirect) are collectively known as ______
- Pointer data
- Metadata
- Information data
- backup data
If your file size is (12*size of one block) or less, how many indirect pointing blocks do you need ?
- 1
- 0
- 4
- 8
If in an Indirect pointer block has:1) address is of 2 bytes and 2)one block is of 1024 bytes, then how many pointers to indirect blocks can this block have ?
- 400
- 512
- 1024
- 2048
File access permisions are grouped in this sequence:
- Owner, Group, others
- Owner, others, group
- Group, others, owner
- Owner, Group, others,everyone
Tape is a ____ access type of storage media
- Random access media
- Sequential access media
- Depending on Filesystem, it is sequential of Random access
- Depends on boot sequence
A Snapshot takes _______ copy of the file system.
- Last night's copy
- Today morning's copy
- Point in time copy
- data copy
How many devices can be connected through SCSI cable according to SCSI-1
- 8
- 16
- 32
- 64