Day-16 Linux File System
We looked at Linux user administration yesterday, along with a few user management-related functions. Today, we'll take a look at the Linux file system as well as some straightforward techniques for testing Linux drives and partitions.
Linux File System: ๐งโ๐ป
A file system is a manner that various files are organised. Similar to a database, it. Linux is built with configuration files which you can check using ls /etc
.
Several Linux file system commands, like "cd," "mkdir," "pwd," "cat," etc., have already been discussed in earlier blogs. So, we'll look at some other extremely useful commands and directories.
Directories
/etc
: It is the directory where Linux's all configuration files live./bin
: It includes commands for Linux that a user or a system administrator can use. It essentially consists of executable and binary files that can be used to run Linux commands.
/dev
: It consists of files that represent devices that are attached to the local system. These files are not regular files that a user can read. These files are called Device drivers.
/boot
: It contains necessary booting file needed for booting the system.
/home
: It is a home directory for users.
/lib
: It contains library files and kernel related files which are needed in system boot process.
System Administrator Commands
Here are few Linux commands that you may daily use as system administrator.
df
: It will show you available free disk space in your system. You can use flags like-k
(represent it in kilobytes),-h
(for more human readable form).
mount
: It will mount local and remote file system. It makes that file system accessible and attach it to the current file system. for more info checkout this official documentation.
unmount
: It is quite opposite ofmount
command. It will hide that mounted file system from the normal user.du
: It will generate a detailed view ofdf
command. It will take all the files available in your system and prints which file is taking how much disk space. Yes, you can use flags like-k
and-h
.
Resources & Ending note ๐๐
This concludes our discussion of the Linux file system and administrator commands. Without a doubt, there is a lot more (like file permissions, chmod, etc,) in this topic, but we will cover that in a future blogs.