LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2018, 07:42 PM   #1
bmxakias
Member
 
Registered: Jan 2016
Posts: 164

Rep: Reputation: Disabled
Question Can't list folders using ls without the folder permissions and user:group info


Hello

I am using this command:

Code:
ls -ldt /folder/*/
and i have this output:

Code:
drwxrwxr-x 2 root root 4096 Mar  6 00:43 /folder/folder1/
drwxrwxr-x 2 root root 4096 Mar  6 00:44 /folder/folder2/
My target is to use only one command and get this:

Code:
Mar  6 00:43 /folder/folder1/
Mar  6 00:44 /folder/folder2/
Any ideas?

Thank you
 
Old 03-05-2018, 07:51 PM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,773

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
Code:
man ls
You can suppress user and group in a long listing, then pipe to sed to remove the permissions data...I don't see a way to do that in the man page.
 
1 members found this post helpful.
Old 03-06-2018, 01:26 PM   #3
bmxakias
Member
 
Registered: Jan 2016
Posts: 164

Original Poster
Rep: Reputation: Disabled
ok anyway thank you ....

Don't know also how to do that....
 
Old 03-06-2018, 01:34 PM   #4
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,773

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
Quote:
Originally Posted by bmxakias View Post
ok anyway thank you ....

Don't know also how to do that....
Don't know how to do what?
 
Old 03-08-2018, 10:55 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,670

Rep: Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487Reputation: 2487
Maybe
Code:
ll |awk '{print substr($0, index($0,$6))}'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux folder Group/User permissions RexDeus9 Linux - Newbie 7 12-24-2017 09:18 PM
Hou to mount a folder with the current owner:group and folder permissions? bmxakias Linux - Newbie 20 11-28-2017 12:22 PM
How to list all directories and subdirectories user & group permissions and export to a file fdzone10 Linux - Security 14 04-10-2015 12:12 AM
[SOLVED] How to list folder size, and number of files and folders in folder steven.c.banks Linux - General 3 11-24-2010 06:24 AM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration