bash - How to display column headers in 'ls -l' command in unix/linux? -
i want display column headers when type ls -l
command in bash shell in unix/linux
when type ls -ltr
on command prompt following.
-r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample3 -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample1
what want know whether ls
' has options display column headers:
file_permissions owner group size modified_time name -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample3 -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample1
no, there's no such option in ls.
you can add like:
alias ll="ls -l | sed '1ifile_permissions owner group size modified_time name'"
then ll show result of ls -l
header. doesn't because it's not aligned on columns ...
Comments
Post a Comment