ll alias: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Created page with "<pre> vi /root/.profile </pre> Add the following line <pre> alias ll="ls -la --color --group-directories-first --time-style=\"+%Y-%m-%d %H:%M\"" </pre> Category : Linux" |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
= CentOS = | |||
<pre> | |||
vi /etc/profile.d/colorls.sh | |||
</pre> | |||
at the end of the file change | |||
<pre> | |||
alias ll='ls -l --color=auto' 2>/dev/null | |||
</pre> | |||
to be | |||
<pre> | |||
alias ll='ls -la --color --group-directories-first --time-style="+%Y-%m-%d %H:%M"' 2>/dev/null | |||
</pre> | |||
= Debian = | |||
<pre> | <pre> | ||
vi /root/.profile | vi /root/.profile |
Latest revision as of 23:11, 6 July 2016
CentOS
vi /etc/profile.d/colorls.sh
at the end of the file change
alias ll='ls -l --color=auto' 2>/dev/null
to be
alias ll='ls -la --color --group-directories-first --time-style="+%Y-%m-%d %H:%M"' 2>/dev/null
Debian
vi /root/.profile
Add the following line
alias ll="ls -la --color --group-directories-first --time-style=\"+%Y-%m-%d %H:%M\""