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"
 
No edit summary
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

Revision as of 04:32, 16 April 2014

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\""