Monday, April 29, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 6058  / 2 Years ago, tue, september 20, 2022, 12:13:13

I want to use ls --full-time -lnG but do not wish to list the user names at all. Is there any way to do this?



I would consider -n and -G optional if it is conflicting with getting this done.


More From » command-line

 Answers
2

From the man page of ls:




-g like -l, but do not list owner




This would prevent the owner name from being listed. So what you intend to do is probably this:



ls --full-time -Gg





Also if you would like to see only a few desired columns, do ls -l and choose the columns using this:



ls -l | awk {'print $column_no'}


For example, if you only want the filename and size, do this:



ls -l | awk {'print $5" "$9'}





Source:




[#27457] Wednesday, September 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
intssive

Total Points: 493
Total Questions: 119
Total Answers: 101

Location: Liberia
Member since Mon, Feb 1, 2021
3 Years ago
;