Topic4: Devices, Linux Filesystems, Filesystems Hierarchy Standards (90) Flashcards
Westminster Road
- Attic
umask value will result in default access permissions of 600 (rw——) for files and 700 (rwx——–) for directories
0077
077
- Attic Fan
cmd unmount /mnt with error message. umount: /mnt: device is busy
user has a file open in /mnt directory
- Stairs
cmd used to modify quota settings
edquota
- 2nd floor landing
following cmds will mount an already inserted CDROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root priv
mount -t cdrom /dev/sr0 /mnt/cdrom
- Back stairs to first floor
in compliance with FHS what directories are doc files found
/var/share/doc
- 2nd FLoor Bathroom Shower
common linux cmds for file management
mv
cp
mkdir
- 2nd Floor Bathroom Closet
cmd display inode usege of each mounted filesystem
df -i
- 2nd floor Bathroom Window
cmd shows all libraries required by binary executable or another shared library
ldd
- 2nd Floor Bathroom Toilet
SysV init config file used to set default run level
inittab
- 2nd floor bathroom Mirror
instead of supplying explicit device in /etc/fstab for mounting, what other options may be used to id the intended partition
LABEL
UUID
- 2nd floor Bathroom door
option must be passed to a filesystems entry in /etc/fstab in order to mount the file system without root priveleges
user
- Christine’s Room Dresser
cmd will change CR-LF pairs in an imported text file, userlist.txt to linux standard LF characters and store it as newlist.txt
tr -d ‘\r’ < userlist.txt > newlist.txt
- Christine’s Bookshelf
normal mode in VI what char can be used to begin a reverse search
?
- Christine’s Window
chown cmd will change ownership to dave and the group to staff on a file named data.txt
chown dave:staff data.txt
- Christine’s Bed
what does mount -a do
mounts all filesystems listed in /etc/fstab that have option auto set.
- Christine’s Door
vi editor what cmd will copy (but not paste) from current line at the cursor and the following 16 lines (17 lines total).
17yy
- My Room Dresser
cmd shows definition of given shell cmd
type
- My Bed
process ID number of init process on a SysV init based system
1
- My WIndow 1
cmd used to search executable file foo when it has been placed in a directory not included in $PATH
find
- My Window 2
cmd print working directory in bash shell
pwd
21, My Desk
FHS where should binaries that have been compiled by sys admin be placed in order to be made available to all users on the system
/usr/local/bin
- My Book Case
cmd changes ownership of file.txt to the user dan and the group staff
chown dan:staff file.txt
- My Closet
describes a difference between GHU GRUB Legacy and GRUB 2
Partition numbers start at 0 in GRUP Legacy and 1 in GRUB 2
- My Door
cmd used to create an initialize the files used to store quota info
quotacheck
25 2nd floor Bannister
whats true about hard linked files
SAME
permissions and owner
inode filesystem
- Dad’s Master Bedroom Standing Dresser
cmd used to query info about available packages on Debian system
apt-cache
- Dad’s Master Bathroom Scrolltop Desk
list of files that would be installed by RPM package file apache-xml.rpm be previewed
rpm -qpl apache-xml.rpm
- Dad’s Master Bathroom Window
filesystem preallocates fixed number of inodes at the filesystem’s make/creation time and does NOT generate them as needed
ext2
ext3
- Dad’s Master Bedroom Bedside Table L
info of existing file is changed when hard link pointing to that file is created
Link count
- Dad’d Master Bedroom Bed Headboard
cmd creates ext3 filesystem on /dev/sdb1
/sbin/mke2fs -j /dev/sdb1
/sbin/mkfs -t ext3 /dev/sdb1
- Dad’s Master Bedroom Bed
partition type used for linux swap spaces when partitioning hard disk space
83
- Dad’s Master Bedroom Bedside Table R
cmd will print important system information such as kernel version and machine hardware architecture
uname
- Dad’s Master Bedroom Right side Window
cmd prints a list of available package updates when using RPM based pkg management
dpkg check-update
- Dad’s Master Bedroom Walk-in Closet
cmd reads and displays contents of Kernel Ring Buffer on the cmd line
dmesg