Ramdom Flashcards
(194 cards)
What type of file system is created by mkfs when it is executed with the block device name only and withouth any additional params
ext2
What of the following statements are true regarding /dev/ when using udev?
Additional rules for udev can be created by adding them to /etc/udev/rules.d/
The /dev/ directory is stored in /etc/udev/dev and is restored during system startup.
The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader
Pass init=/bin/sh on the kernel param line.
Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?
0027
What command changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
tune2fs -i 200 /dev/sda1
Command converts spaces in a file to tab characters and prints the result to standard output
unexpand
which utility would be used to change how oftten a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem
tune2fs
what is the default percentage of reserved space for the root user on a new ext4 filesystem
5%
What happens when a file system that is not listed in /etc/fstab nor known to the system is manually mounted
the command systemctl mountsync can be used to create a mount unit based on the existing mount
What is true about mount points
Every existing directory can be used as a mount point.
Kernel parameter that instructs the kernel to suppress most boot messages
quiet
FILL BLANK -
Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters).
updatedb
What does the command mount –bind do?
It makes the contents of one directory available in another directory
Consider following output
525385 -rw-rw-r– 2 1000 1000 0 Feb 12 19:44 a.txt
526255 lrwxrwxrwx 1 1000 1000 5 Feb 12 19:44 b.txt -> a.txt
How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?
ln a.txt c.txt
what commands will display all currently mounted filesystems
cat /proc/self/mounts
mount
Command can perform full text search on all available packages on debian system
apt-cache
updates linker cache of shared libraries
ldconfig
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
chgrp -p sales sales
chmod 2775 sales
FILL BLANK -
Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)
df
Which chown command changes the ownership to dave and the group to staff on a file named data.txt?
chown dave:staff data.txt
When considering the use of hard links, what are valid reasons not to use hard links?
Hard links are specific to one filesystem and cannot point to files on another filesystem
hard links are not availabel on all Linux systems because traditional filesystems, such as ext4, do not suport them
In compliance with the FHS in what directory are man pages found?
/usr/share/man
FILL BLANK -
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
cmdline
/proc/cmdline
What is the process ID number of the init process on a SysV init based system?
1