Long Format
As we saw before, the -l
option causes ls
to display its results in long format. This format contains a great deal of useful information. Here is an example directory from Ubuntu system:
-rw-r--r-- 1 root root 3576296 2007-04-03 11:05 Experience ubuntu.ogg -rw-r--r-- 1 root root 1186219 2007-04-03 11:05 kubuntu-leaflet.png
Below table explain the different fields:
Field | Meaning |
---|---|
-rw-r--r-- |
Access rights to the file. The first character indicates the type of file. Among the different types, a leading dash means a regular file, while a ādā indicates a directory. The next three characters are the access rights for the file's owner, the next three are for members of the file's group, and the final three are for everyone else. The full meaning of this is discussed in Permissions. |
1 |
File's number of hard links. |
root |
The username of the file's owner. |
root |
The name of the group which owns the file. |
3576296 |
Size of the file in bytes. |
2007-04-03 11:05 |
Date and time of the file's last modification. |
Experience ubuntu.ogg |
Name of the file. |
Latest Post
- Dependency injection
- Directives and Pipes
- Data binding
- HTTP Get vs. Post
- Node.js is everywhere
- MongoDB root user
- Combine JavaScript and CSS
- Inline Small JavaScript and CSS
- Minify JavaScript and CSS
- Defer Parsing of JavaScript
- Prefer Async Script Loading
- Components, Bootstrap and DOM
- What is HEAD in git?
- Show the changes in Git.
- What is AngularJS 2?
- Confidence Interval for a Population Mean
- Accuracy vs. Precision
- Sampling Distribution
- Working with the Normal Distribution
- Standardized score - Z score
- Percentile
- Evaluating the Normal Distribution
- What is Nodejs? Advantages and disadvantage?
- How do I debug Nodejs applications?
- Sync directory search using fs.readdirSync