Original link: http://jz20080153.blog.sohu.com/161554070.htmlLs-l List Information DetailedWhen we use the Ls-l command to view the Keyholder information of files and subdirectories in a directory, we get a detailed list of file and directory names.
ls"function description": The ls command is the most commonly used command under Linux. ls command is the abbreviation of the list, the lack of saving LS used to print out the current directory of the list, if LS specifies a different directory,
DF
DF (disk free)function Description:Displays information about the disk.Syntax:DF [-ahhiklmpt][--block-size=][-t ][-x ][--help][--no-sync][--sync][-- version][file or device]Additional notes:DF Displays the disk's file system and usage
[email protected]:~/shell$ ls1.txt man.config man.config~ test.sh test.sh~It shows that there are five files below the/shell, now the size of each file is to be typed separately, what to do with du command.Think, the answer is below, with the mouse
One. HDFs shell commandWe all know that HDFs is a distributed file system to access data, then the operation of HDFs is the basic operation of the file system, such as file creation, modification, deletion, modify permissions, folder creation,
All the data in Linux is stored in the file, and all the files are assigned to different directories. A directory is a tree-like structure called a file system.When you use Linux, you spend most of your time working with files, and this section
Original URL: http://blog.csdn.net/wangjunjun2008/article/details/19840671Du (disk usage), as the name implies, view the size of the directory/file footprint#查看当前目录下的所有目录以及子目录的大小$ du-h$ du-ah#-h: Using the human form of K, M and G to display#-a:
Du simple Usage exampleDu-SH xmldb/Du-Sm* | sort -n //statistics current directory size and size sorting du -sk *| sort -ndu -sk * | grep guojf //look at a person's size du -m | cut -d "/" -f 2 //See text before second/character See how
Original source: http://www.cnblogs.com/peida/archive/2012/12/07/2806483.htmlThe Linux du command also looks at the space used, but unlike the DF command, the Linux du command is a view of the space used by the file and directory disks , or some
First, view the file as the disk size generally use the du or DF commandDF Command: used to display the available disk space on a disk partition . The default display unit is KB. You can use this command to get information about how much space the
The
Os.path module is mainly used for commonly used pathname operations, and is used in programming with high frequency
Os.path Common functions
Abspath (PATH)
Returns the canonical absolute path of path name paths
NAMEStat Get file propertiesThis function is located in the header file.Function Prototypes:int stat (const char *path, struct stat *buf);Number of references:Path file paths + file nameBUF Pointer to bufferreturn value:-1 encountered an error0
Original URL: http://www.cnblogs.com/peida/archive/2012/12/10/2810755.htmlThe Linux du command also looks at the space used, but unlike the DF command, the Linux du command is a view of the space used by the file and directory disks, or some
#-*-coding:utf8-*-"Python common file Operation example os.path the path name Access function in the module separates basename () removes the directory path, returns the file name DirName ( Remove the file name and return to the directory path join (
Recently in doing a small system to play when involved in the file upload, so on the internet to find the Java upload file scheme, and finally determine the use of common-fileupload to achieve upload operations.
Requirements Description
1. File objectsThe file object can be used not only to access normal disk files, but also to access "files" on any other type of abstraction level. Once the appropriate "hooks" are set, you can access other objects that have the file type interface
The php has a system-by-File size function, which is filesize (), but this function is in bytes, in some cases, we need to be very intuitive to understand a file size, not only need byte B this unit, but also need KB,MB,GB, Even bigger TB,PB, so
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.