Filesystem In-depth

Red Hat Linux Essentials More on User, Group, Permission, Filesystem and System Admin Tools
18 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€48.02
List Price:  €67.23
You save:  €19.21
£39.14
List Price:  £54.79
You save:  £15.65
CA$71.63
List Price:  CA$100.29
You save:  CA$28.65
A$80.06
List Price:  A$112.09
You save:  A$32.03
S$67.51
List Price:  S$94.52
You save:  S$27.01
HK$388.46
List Price:  HK$543.88
You save:  HK$155.41
CHF 44.24
List Price:  CHF 61.94
You save:  CHF 17.70
NOK kr563.34
List Price:  NOK kr788.73
You save:  NOK kr225.38
DKK kr358.57
List Price:  DKK kr502.03
You save:  DKK kr143.46
NZ$88.43
List Price:  NZ$123.81
You save:  NZ$35.37
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳5,964.32
List Price:  ৳8,350.53
You save:  ৳2,386.20
₹4,269.04
List Price:  ₹5,977
You save:  ₹1,707.95
RM224.30
List Price:  RM314.04
You save:  RM89.74
₦77,264.53
List Price:  ₦108,176.53
You save:  ₦30,911.99
₨13,894.99
List Price:  ₨19,454.09
You save:  ₨5,559.10
฿1,708.15
List Price:  ฿2,391.55
You save:  ฿683.40
₺1,759.41
List Price:  ₺2,463.31
You save:  ₺703.90
B$318.75
List Price:  B$446.27
You save:  B$127.52
R937.33
List Price:  R1,312.34
You save:  R375
Лв93.99
List Price:  Лв131.59
You save:  Лв37.60
₩72,848.40
List Price:  ₩101,993.60
You save:  ₩29,145.19
₪182.43
List Price:  ₪255.42
You save:  ₪72.98
₱2,932.41
List Price:  ₱4,105.61
You save:  ₱1,173.20
¥7,857.17
List Price:  ¥11,000.67
You save:  ¥3,143.49
MX$1,008
List Price:  MX$1,411.29
You save:  MX$403.28
QR181.52
List Price:  QR254.14
You save:  QR72.62
P693.18
List Price:  P970.50
You save:  P277.32
KSh6,450.70
List Price:  KSh9,031.50
You save:  KSh2,580.80
E£2,541.20
List Price:  E£3,557.88
You save:  E£1,016.68
ብር6,354.82
List Price:  ብር8,897.26
You save:  ብር2,542.43
Kz45,590.88
List Price:  Kz63,830.88
You save:  Kz18,240
CLP$49,454.60
List Price:  CLP$69,240.40
You save:  CLP$19,785.80
CN¥364.87
List Price:  CN¥510.85
You save:  CN¥145.98
RD$3,040.26
List Price:  RD$4,256.60
You save:  RD$1,216.34
DA6,753.71
List Price:  DA9,455.74
You save:  DA2,702.02
FJ$115.90
List Price:  FJ$162.28
You save:  FJ$46.37
Q384.44
List Price:  Q538.26
You save:  Q153.81
GY$10,442.13
List Price:  GY$14,619.81
You save:  GY$4,177.68
ISK kr6,976.10
List Price:  ISK kr9,767.10
You save:  ISK kr2,791
DH503.31
List Price:  DH704.68
You save:  DH201.36
L920.86
List Price:  L1,289.28
You save:  L368.41
ден2,954.07
List Price:  ден4,135.94
You save:  ден1,181.86
MOP$399.27
List Price:  MOP$559.01
You save:  MOP$159.74
N$928.04
List Price:  N$1,299.34
You save:  N$371.29
C$1,836.54
List Price:  C$2,571.30
You save:  C$734.76
रु6,797.51
List Price:  रु9,517.06
You save:  रु2,719.54
S/185.85
List Price:  S/260.20
You save:  S/74.35
K202.57
List Price:  K283.61
You save:  K81.04
SAR187.71
List Price:  SAR262.82
You save:  SAR75.10
ZK1,381.27
List Price:  ZK1,933.89
You save:  ZK552.61
L239.16
List Price:  L334.85
You save:  L95.68
Kč1,208.85
List Price:  Kč1,692.49
You save:  Kč483.63
Ft19,737.39
List Price:  Ft27,633.93
You save:  Ft7,896.53
SEK kr544
List Price:  SEK kr761.65
You save:  SEK kr217.64
ARS$51,344.11
List Price:  ARS$71,885.87
You save:  ARS$20,541.75
Bs344.88
List Price:  Bs482.86
You save:  Bs137.98
COP$220,596.26
List Price:  COP$308,852.42
You save:  COP$88,256.15
₡25,341.90
List Price:  ₡35,480.70
You save:  ₡10,138.79
L1,268.10
List Price:  L1,775.44
You save:  L507.34
₲389,249.85
List Price:  ₲544,980.94
You save:  ₲155,731.08
$U2,221.61
List Price:  $U3,110.44
You save:  $U888.82
zł204.67
List Price:  zł286.56
You save:  zł81.88
Already have an account? Log In

Transcript

Welcome back friends. Throughout the course we have learned about various topics and learned a wide range of commands on our ETL environment. And here in this video we are going to learn about file system in depth and are more about what we can do with file system and what are the details is that we can gather for our solutions. So let's start we can create partitions on file systems. And the file system consists of various partitions that we have to understand. This drives are divided into various partitions the Linus drives are divided into partitions.

They are formed with file systems allowing user to store data with consisting of folders directories and various utilities. The default file system is called x 33. Which is fully formed l third extended to Mix file system. So, the file system was or whatever we say in the earlier slide earlier videos in the first three sections, the whole thing route home, etc, when and all the stuff like that, that is a file system. The default file system is a new version. The other common file systems are x 82 and MS DOS, which are typically used with floppies they are outdated.

So they are not used these days. ISO 9660 is typically used for CDs and GFS and GFS to is used for storage area networks or Sam. Then there is another concept called high node, I node is an entry in the table actually it is performed as an index node. It consists contain information about a file, which is a data about data All metadata about the file, the information the last created, edited the permissions and all information. It contains a list of all files in HD two or ESP three file system. It includes file type permission, user ID, group ID, the link count, which is a count of path names pointing to this file.

Multiple paths could point to the same file. In Linux, the file size and various timestamp timestamp is a unique moment of time which is recorded. We have hours minutes seconds followed by date and month. A timestamp is a certain point of time, which is unique. A time may differ from timezone throughout the world but timestamp is always the same. It It begins with the first formation of the database back in 90 70s and 80s till then, it is used as a common difference of time in databases these days also, it points to files data blocks or disk or other data about the files.

The directories are vital and file system that computers reference for a file is the ID number. The human way to refresh our file is by file name. A computer uses the inode number, but we use this file name because we could not remember a huge range of AI note number. However each eye note is assigned to a file name. Or directory is a mapping between the human name for file and a computer's AI note number. That is a visual representation.

Copy and I note Come on. I could we could work Here as the copy command or CP command, Allah allocates a free number, placing a new entry in the table. When we use this command, it creates a three inode number, a new one, placing a new entry in the inode table. It creates a D, D entry or directory entry. associating a name with the ID number, the name that we see it is actually what happens behind the curtain that we don't know actually. So if you want to understand how the system works, it is for you.

It copies data into the new file. These are the steps that the copy command follows. We simply write the CP command and we think everything is done. So what is actually being done here by the system is this. Then we have Move for move what happens exactly. If the destination of the move command is on the same file system as the sole the move command has to perform this task, it creates a new directory with this entry with the new file name and deletes the old directory entry with the old file name.

That's it. It has no impact on the inode table. It is simply the change of the difference. Only the timestamp is being changed not the table or the location of the data on that is no data is moved actually. The data is same at same place. Only the folder location or name or directory name is being changed.

If the direction is a different file system, move act as a copy and remove. cut and paste. RM What does RM Remove does it decremental encounter the spring I know number to be reused. Actually the when you delete a file, it deletes the link decrements the link counter and the inode number is free and it could be used for other files. It places data blocks on the free list the number which is free, it places on the free list that it is available for free. You could use it It removes the directory entry data is actually not actually removed, but will be overwritten when the data blocks are used.

So this is the thing that occurs on a system. When we delete. Actually nothing is being deleted, it is being overwritten or delete operation is an imaginary phenomena. That's why we can recover each and every file from a system Since when it was created, high was a huge chunk of system of files could be there. It could be hard if the file which is being deleted was a year or more than a year old. But we can recover that thing.

That's why over a time, address storage device like hard disk or pendrive, degrades, it could not be used. Because at a certain scale, the override operations could not be performed. And we need a new train. For hard links hard links are links that adds an additional D entry or directory entry to reference a single file. One physical file on the file system is there. Each directory references the same inode number.

It increments the link count the Remove command decrements the link count, remove command decrements the link cow and heartland incremental income to file exists as long as at least one link remains when you delete multiple links, that is a file being copied over different folders does not exist in different locations. Actually, different pointers or links are there. When you delete all the links, the file is being lost that difference is not there. Actually it is there. When the link count is zero the file is removed, theoretically, cannot expand drives or partitions. It could not expand overdrive.

Different partitions had different file if you create a copy or duplicate of the file in different partition, it will actually copy that file symbolic or soft link points to another file. ls minus l displays the link name and the first file as the file type one is for symbolic link. The content of a symbolic link is the name of the file that it references. There are seven fundamental file types. When we use the ls command list shell command, we have different file types. That is denoted by different alphabetic characters.

A regular file is represented by minus sign or dash, or directory is represented with a small d. a symbolic link is represented with a small L. A block a special file is represented with a small B. Character a special file is represented with a small C. A named pipe is represented with a small p, a socket or virtual port. represented with S. We can check free space and the system using the G VA utility or the command line with the GI utility we can move do so by moving with the applications system to use a disk usage analyzer. It will show you the free space and the use a space. You can defragment it and create your own thing. It has different options.

The d u produces text users report in kilobytes of the directory. It could be used to list the size of every file in the subdirectories by default, minus size and capital H options are used to display sizes and easier to read unit minus S is used to summarize the subdirectory and the money includes file system types. So, we can learn more and do an analysis over the file system and directories for removable media like pendrive CD drives and other drives this we have to do mounting and unmounting in Linux, when we insert a pendrive say pendrive on a system, we have to mount that printer to a particular location and when we remove we have to unmount it. So, what is the process that actually does some mounting integrates some foreign file system into the main tree. The pendrive contain can consist of different file system and the system consists of different file system as we have read x three or x 32 and different file system when the vendors file system has to be integrated In your systems, desktop environment or server environment, it has to be mounted.

However, in these days, auto mounting tools are there so you don't need to create a mounting location. Before accessing media must be mounted before they move in media must we unmounted this very simple thing in genome and Katie g y environment devices auto mount under media, they are automatically mounted in media location. If you're not using the UI mode, you have to specify the mounting location by commands as they are in console root can manually mount device there are two different methods, one for root and one for non root users. For root users, you have to provide a direct to the location Mount m&t. Then write these three commands. mk dir Create a device location within the mount then write the mount command for a particular location and when your work is done write the unmount command for the same location.

Similarly, for non root users, you can use the genome unmount command for unmounting and you know mount for mounting the file the directory will be same and you have to place the minus T and minus t arguments for CDs and DVDs, the same accessible from and they are ejected with right click eject. The USB media is handled with genome as we have learned. You can archive files or create a zip file, the zip or not actually zip zip rar identify, which is a shorter version or compressed format of the original file, archiving places, many file into one target file. It creates a single file, which consists of different files that are not executable until it has unzip. It has been unzipped. It is easier to keep backup because the size is less and the single file is there to store and transfer tar is a standard Linux archiving command.

We can use the tar command to create a archive and untagged to decompress archives are commonly compressed and algorithms applies that compressed file there are certain algorithms that are applied on compression uncompressing restores the original file, which are natively support the compression using the GZ organ If you can also use the Bz to all puns if there are various tools, various open source tools and things available online. Most of them are being archived in our and archive format either in tarball or new zip or other formats. There are various essentials or tar options that could be used. The actions which is required include minus c t and x. c creates an archive D creates a list of lists and archive. x extract the file from an archive. So you have to write these actions or options while creating as an archive file.

Typically, when you require archive names File after file archive, you can use F and there are optional of actions that can be used that for using the G zip compression j for PC to compression and V for verbose and x attribute that is to se line x and ACL properties. Sl n S is a security enhanced line x, which is being implemented by our HCl. The creating file archives you can use other tools as well. The format is being we have to write zip C'mon, set IP minus r, then provide the file name and the location then write unzip if you want to unzip the file with the extension dot zip under the file is here and read the file to Lackawanna Graphically you can do very easily without writing any color. So, that was a detail about file system. Now we know how move copy, remove and other commands are physically executed.

The concept is clear when your concepts are clear, you understand the operating system better than others. So you could administer it more preferably, you need to understand what is actually happening within the OS that we have done here. You should also explore some ethical hacking or system security utilities how they could be compromised, so, you should secure you must be aware of different type of attacks out there. The DoS attack DDoS attack for attack ping of death attack A taxi would explode if you are going to become a Server Administration Administrator, so keep learning keep moving ahead. We should have a bright future ahead

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.