In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "Linux system commonly used disk management command finishing", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "Linux system commonly used disk management command finishing" bar!
**************************df Command ***********************************
Function: Check disk space usage of file systems. You can use this command to get information about how much space the hard disk is taking up and how much space is left.
Syntax: df [options]
Description: The df command displays the usage of all file systems for i-nodes and disk blocks.
The meanings of the options in this command are as follows:
-a Displays disk usage for all file systems, including zero-block file systems such as/proc file systems.
-k is displayed in k bytes.
-i Displays i node information instead of disk blocks.
-t Displays disk space usage for each specified type of file system.
-x Lists disk space usage for file systems that are not of a specified type (as opposed to the t option).
-T Displays the file system type.
******************************************************
The original meaning of du is "disk usage", which means to show the use of disk space.
Function: Statistics directory (or file) occupied disk space size.
Syntax: du [options] [Names…]
Description: This command steps through each subdirectory of the specified directory and displays the file system block (1024 bytes) occupied by that directory. If no Names are given, statistics are made for the current directory.
The options for this command have the following meanings:
-s gives only the total number of occupied data blocks for each Names parameter.
-a Recursively displays the number of blocks occupied by each file in the specified directory and each file in the descendant directory. If neither-s nor-a is specified, only the number of disk blocks occupied by each directory and its subdirectories in Names is displayed.
-b Lists disk space usage in bytes (k bytes by default).
-k Lists disk space usage in 1024 bytes.
-c Add a total at the end (system default).
-l Calculates all file sizes, or multiple times for hard-linked files.
-x Skip directories on different file systems are not counted.
**************************dd Command ***********************************
Function: Copy the specified input file to the specified output file, and format conversion can be carried out during the copy process. This command can be used to implement the diskcopy command under DOS. First use dd command to write the data on the floppy disk into a register file on the hard disk, and then write this register file to the second floppy disk to complete the function of diskcopy. It should be noted that the hard disk should be stored on the file with rm command deleted. Standard input files and standard output files are used by default.
Syntax: dd [options]
if = Enter the file (or device name).
of = output file (or device name).
ibs = bytes Read bytes at a time, that is, the number of bytes read into the buffer.
skip = blocks skips ibs*blocks at the beginning of the read buffer.
obs = bytes Write bytes at a time, that is, the number of bytes written to the buffer.
bs = bytes Also sets the number of bytes in the read/write buffer (equal to setting ibs and obs).
cbs = byte converts bytes once.
count=blocks copies only incoming blocks.
conv = ASCII converts EBCDIC code to ASCIl code.
conv = ebcdic converts ASCIl codes to EBCDIC codes.
conv = ibm converts ASCIl codes to alternate EBCDIC codes.
conv = block converts variable bits to fixed characters.
conv = ublock converts fixed bits into variable bits.
conv = ucase converts letters from lowercase to uppercase.
conv = lcase converts letters from upper case to lower case.
conv = notrunc does not truncate the output file.
conv = swab Swap each pair of input bytes.
conv = noerror Do not stop processing on error.
conv = sync Resizes each input record to the size of ibs (filled with NUL).
*************************************************************************************
Floppy disk is one of the storage media commonly used by users. Floppy disks must be formatted before they can be used, and then data can be stored with tar, dd, cpio, etc., or an installable file system can be created on floppy disks.
Function: Low-level formatted floppy disk
Syntax: format [-n] device
Description: The purpose of this command is to format the floppy disk.
-n Diskettes are formatted without verification.
device Specifies the device to format, typically one of the following:
/dev/fd0d360
/dev/fd0h2200
/dev/fd0D360
/dev/fd0H360
/dev/fd0D720
/dev/fd0H720
/dev/fd0h460
/dev/fd0h720
/dev/fd0H1440
At this point, I believe that we have a deeper understanding of "Linux system commonly used disk management command finishing", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.