Tagged Questions
0
votes
2answers
93 views
What is a simple standard command line way of getting 'ls' to produce file permission in octal?
Any know a standard way, other than 'stat' to produce octal output for file permission from 'ls'?
Standard way of using stat (on OSX) is:
stat -f '%A %a %N' *
where * can be any file pattern that ...
2
votes
1answer
474 views
Overwrite ls in .bash_profile
I'm new to bash and unix. I'm trying to create an alias for ls. In my .bash_profile I have the following:
alias ls="ls -lhHG"
This doesn't work at all. If I change it to:
alias la="ls -lhHG"
...