linux training camp

Find out how much space there is in the current directory?

The question deserves a good, said she said. In the company, often to / system / bin directory pushdown files, sometimes fails, saying it was not enough space, but this is just not enough space to push down the catalog, but

Push down to another directory is possible. Is this what is the reason? Further, what this refers to is not enough space?

 

First, du -h. You only high-speed current directory account how much disk space, can not tell you how much space is available.

df -h. I will tell you which file system you belong to this directory, such as / dev / root, the capacity of the file system is how big the file system and how much capacity is available.

The problem here may be more:

  • How to understand the directory will belong to different file systems, do a linux system, there are multiple file systems?

 Indeed, you can look

 

 Here mount point, I want to say a few words

Mount refers to the linux system, the disk partition, you need to mount it to a different directory before they can be accessed

The device file in the top-level directory to connect to a directory in the Linux root directory (preferably empty directory), access this directory is equivalent to the access device file

If you do not mount, you can view the hardware devices found Linux system graphical interface system, but the command line can not be found.

In short, Linux systems using any hardware device, the device must be mounted with the existing file directory file

 

How to generate a checksum file?

md5, sha1, crc check code can be used as a file, whether the file to be altered

In linux md5sum filename can be generated directly md5 checksum of a file

Guess you like

Origin www.cnblogs.com/Arnold-Zhang/p/12210480.html