Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar

level: UNIX4

Questions and Answers List

level questions: UNIX4

QuestionAnswer
What is i-node?i-node is a structer that stores all information about file except its name and data. Information is stored in numerical value
displays i-node of filesls -i
displays information on a file stored in its i-nodestat file_name
What are block devices?File type that refers to mass storage devices Allow for random buffered access to devices lsblk -lists block devices
What are character devices?File type that refers to both pysical devices and system byte generators Allow for sequential unbuffered access to devices
What are hidden files?Files that start with a dot rm command skips hidden caracters, hence * wildcard doesnt work .* must be used
How to protect directory from removing it by accident?Put there hidden file
displays directory content size recursivelydu -sh h stand for human readable, particular files are distinguished note that it includes hidden files
lists all files that are openlsof lsof somefile -displays information on selected file
copies count block of the bs size from if to the of filedd if=input_file of=output_file count=how_many bs=block_size
Which file system is assumed in most unix distrosext4
What is disk partitioning in linux?It enables to split hard drive into separate sections that act independently
command for partiton managementfdisk it requires root privileges
BSD terminology slice partitionsfdisk partition logical disks
Command used to create file systemmkfs [-t type] device mkfs.type device
What is mounting of file system?Attaching file system to existing file system root file system is mounted as a top-level one
command used to mount file systemmount [-t type] [-o options] device mountpoint
command used to dismpunt file systemumount device|mountpoint
command that displays disk usage for all mounted file systemsdf -h
command that checks and repairs file systemsfsck
What is FHSFHS=file hiereachy standard