linux files and directories Flashcards
how to view the content of the root directory in linux in long format
ls -l /
subdirectory Contains user executable programs.
/bin
for eg, the ls program is located in /bin
subdirectory Contains system executable programs used by the root user and the system
/sbin
for eg, the clock program is located in /sbin
subdirectory Contains shared library files used by /bin and /sbin
/lib
subdirectory Contains special file system entries for devices attached to the system
/dev
subdirectory Contains the Linux kernel and bootloader programs.
/boot
The Linux kernel program is
typically known as
vmlinuz
subdirectory Contains system configuration files
/etc
for eg user account information
subdirectory Contains special files pertaining to the state of the running Linux system. These files
are virtual files
/proc
subdirectory Contains temporarily mounted file systems.
/mnt
subdirectory Contains programs that can be run any users of the system
/usr
subdirectory Contains variable data files pertaining to the on-going system status such as log files
of system activities
/var
Contains sub-directories of user accounts to store personal data files.
/home
subdirectory Contains temporary files
/tmp
what is the home directory of the root user
/root
subdirectory which Contains software packages for installation
/opt
what does ls /bin return
commands that you can run on linux
what does ls -l do
displays the content of the file directory in long format
how to create new files
use touch command