Commands used for listing the files

Status
Not open for further replies.

Anusha C

New Member
Joined
May 28, 2022
Messages
1
Reaction score
0
Credits
12
Can anyone please give information on different ways of listing the files.
Also, I want to know how can we display file names along with their permissions which belong to a particular user.
 


Sanjana D

New Member
Joined
May 28, 2022
Messages
1
Reaction score
0
Credits
13
Ways for listing the commands:
commands
Description
ls/list root
ls..list parent directory
ls../..parent above directory
ls~user home directory
ls -d*/only directory
ls*content of directory
ls -Rrecursively list all the files and directory till subdirectory
ls -ssize of directories
ls -lin table format containing owner, size and file name
ls -lhlong format of files, name and size
ls -alist including hidden files
ls -la|-al|-a -l| -l -a|&long format
ls --helpmanual page
ls -eldirectory content
rmremove

The file names can be displayed along with their permissions by using the following command:
->ls -al | grep ‘username’
->The grep command searches a file for a particular pattern of characters and displays all lines that contain that pattern.
->The ls- al command output is searched with the given username and then the filenames along with the permission are displayed of the particular user.​
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,193
Reaction score
6,087
Credits
24,102
You're the same person answering himself, get a life and prepare to find another forum to annoy.

Chris Turner
wizardfromoz
 
Status
Not open for further replies.
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top