Skip to content

Commit

Permalink
Merge pull request #88 from arcticicestudio/feature/gh-85-bash-file-a…
Browse files Browse the repository at this point in the history
…ttribute-alias

alias for file/directory mode bits (attributes) in octal notation format
  • Loading branch information
arcticicestudio authored Nov 29, 2017
2 parents b9437b5 + cc75c2f commit d20e4d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snowblocks/bash/core/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ alias lsraw='LC_COLLATE=C \ls -N1 --group-directories-first'
# * use two tab stops. (-x2, --tabs=n)
alias less='less -RFXx2'

# Show mode bits of files and directories in ocal form,
#
# %A - Access rights in human readable form
# %a - Access rights in octal
# %N - Quoted file name with dereference if symbolic link
alias lsm='stat -c "%A %a %N"'

# +-------+
# + Utils +
# +-------+
Expand Down

0 comments on commit d20e4d2

Please sign in to comment.