Topic4: Devices, Linux Filesystems, Filesystems Hierarchy Standards (90) Flashcards
(88 cards)
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