commasaming123 all= (Root)/bin/ls,/usr/bin/passwdIf you let the aming123 user execute the sudo ls/root command, you do not need to enter the password for the aming123 user to set the order:aming123 all= (Root) nopasswd:/bin/lsIf multiple users are required to execute a command, add multiple to the wheel group, and then limit the wheel group.%wheel all= (All) allDF View Partition and UsageFree to view with swapDF Default file is in KDf-k-M (in M)-I (Inode)-H (auto-match unit)-a displays all part
Tags: share picture fonts Linu Enter file size span log totalDF is commonly used to view disk usage.Du is commonly used to view the size of a folder.Linux commands:DF [-ahikhtm] [directory or folder]Parameters:-H: Display the usage of 1111000KB-XXXMB in a way that is easier to recognize, by default in KB-I: Do not use disk capacity, with the number of inode to display-A: List all file systems, including system-specific/proc and other file systems-K: Display the file system in KB capacity (defaul
application of this disk quota. The entire execution process is as follows:First confirm that your/home directory is not mounted separately under a partition, with DF to view. If not, you need to do it with me. Otherwise this step can be omitted.In the author's Linux system,/home does not occupy a single partition. Therefore, the/home directory needs to be mounted under a separate partition because the quota is limited to partitions.I use Fdisk-l to
1, the size of the LVM adjustment space:#lvextend-L +1300m/dev/mapper/ycgsstore_sdb-wmy#lvdisplay wmyThe adjustment was successful, but the DF view was still the original space size.#df-H2, Google found the following solutions:Original address: http://www.linuxquestions.org/questions/linux-general-1/df-showing-incorrect-used-space-after-lvextend-758945/Steps:#U
ArticleDirectory
Parameters
Option
Example
Display disk space usage
DF [Options] [Filesystem-list]
Parameters
When DF is called without any parameters, the user obtains free space for each mounted device on the local system.
Filesystem-listIs an optional list of one or more path names. The path name is used to specify the file system to cover its space usage.
Option
-H
The Linux df command is used to display the disk usage statistics of the file system on Linux.SyntaxDf [option]... [FILE]... FILE-a, -- all contains all file systems with 0 Blocks FILE -- block-size = {SIZE} use Blocks of {SIZE} size FILE-h, -- human-readable uses a human-readable format (the preset value does not include this option ...) FILE-H, -- si is like-h, but 1000 is used instead of 1024 FILE-I, -- inodes: list inode information
There are very many people who say. There is a lot of knowledge on the Internet, why do you have to repeat these things in your blog?What I want to say is that what other people write is something that others understand. At the same time is the summary of the learning process for others, for themselves. Write their own blog The most basic purpose is to record their own learning process, the same time on their own learning things to summarize, when after a period of time to look back. I have expe
Oracle Library failed because the disk is full, log the instructions to view disk capacity1. Command format:DF [Options] [file]-A All File system list-h easy to read mode display-H equals "-H", but the formula, 1k=1000, rather than 1k=1024-I display inode information-K block is 1024 bytes-L show local file system only-M block is 1048576 bytes--no-sync Ignore sync command-P output format POSIX--sync perform the sync command before obtaining the disk information-T File system typeFormat:
Learn about basic Linux commands: df commands and du commands-general Linux technology-Linux technology and application information. For more information, see the following. Df command
This interface is used to view the status information of the Linux File System and display the capacity, used, unused, and mount points of each partition.
For example
Df-k dis
1. detailed usage of the du command
Common commands: [B] du [/B]-
Query the disk space used by an archive or directory
A: displays the disk space occupied by all directories and each file in the second directory.
B: The size is represented by bytes (the default value is K bytes)
C: add the total value (default)
S: only display the total size of each file
X: only calculate the files of the same file system.
L: Calculate the size of all files
Reference
The command du can displa
the version information and exits.[Size] can be the following unit (an integer can be added before the Unit ):KB 1000, K 1024, MB 1000000, M 1048576, G, T, P, E, Z, and Y.Report du errorsGNU coreutils project home page: GNU software general help: Report du translation errors to (2) Ubuntu command for viewing disk space The DF-h df command is used in Linux to view the file system by disk partition. You can
View the folder size in Linux and the remaining disk space (du/df)1. Introduction
View the directory size in du, and view the disk usage in df.2. du
Disk usage(1) Basic functionsRecursively view the size of all files in a folder(2) common parameters:-H,-human-readable Display dimensions in a readable manner (for example, 1 K 234 M 2G)-S,-summarize only calculates the total usage of each parameter in the Com
former is all the remaining space on the hard disk, and the latter is
The ext3 file system gives the root user 5% exclusive space, so here is not
. It should be emphasized that the size of each block is generally 4 K (× this sentence is incorrect, not necessarily 4 K. The correct method is: total size = SFs. f_blocks × F _ bsize, that is, the number of blocks × the size of each block. The unit is bytes, that is,/1024/1024/1024 is the unit of GB. In addition, the problem should be noted that SFS
DF: Lists the overall disk usage of the file system;Du: Evaluating the disk usage of the file system (commonly used to estimate the capacity of the catalog)DF parameter:-A: List all file systems, including system-specific/proc and other file systems-K: Displays each file system in KB capacity-M: Display the file system in MB capacity-H: Self-display in GB,MB,KB and other formats that are easier for people t
DF looks at the size of the first-level directory, but cannot view the size of the file. Du can view the directory or file size. 1 Basic usage of DFThe DF command displays the total space of all current file systems and the currently available space, using the following:-A All File system list-h easy to read mode display-H equals "-H", but the formula, 1k=1000, rather than 1k=1024-I display inode informati
to the directory;2, can cross file system;3, will not increase the number of links linked to the file;4, the size of the specified path contains the number of characters;
Du: Show file sizeDu-s: Displays the entire directory size[Email protected] ~]# du-hs/etc/39m/etc/Du-h[Email protected] ~]# du-h/etc/324k/etc/pki/ca-trust/extracted/openssl184k/etc/pki/ca-trust/extracted/java620k/etc/pki/ca-trust/extracted/pem1.2m/etc/pki/ca-trust/extracted4.0k/etc/pki/ca-trust/source/blacklist4.0k/etc/p
Many people say that there is a lot of knowledge on the Internet, why do you want to repeat these things in your blog?What I want to say is that other people write things that others understand, but also the summary of others learning process, for their own, write their own blog The main purpose is to record their own learning process, at the same time on their own study of things to summarize, when after a period of time can look back, I have experienced, This is also a kind of learning, but al
Tags: bin localhost 3.4 available art col color Linux disk spaceThe function of the DF command in Linux is to check the disk space usage of the Linux server's file system. You can use this command to get information about how much space the hard disk is taking up, and how much space is left.Grammar:DF [-ahikhtm] [directory or file name]Options and Parameters:
-a: Lists all file systems, including system-specific/proc File system
-k: K
first, the purposeThis article describes the use of the Disk Management tool df and Du.The DF tool is used to view the disk usage of each partition in the system, and the Du tool is used to view the size of each directory in the file system. For example, DF is equivalent to the disk usage features shown in the Windows system, such as C, D, and so on, and du corre
The function of the DF command in Linux is to check the disk space usage of the Linux server's file system . You can use this command to get information about how much space the hard disk is taking up, and how much space is left.1. Command format:DF [Options] [file]2. Command function:Displays the free space for the specified disk file. If no file name is specified, all available space for the currently mounted file system will be displayed. By defaul
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.