PDA

View Full Version : Where's ll?



andykee
Oct 20th 2005, 12:15 AM
Well, I'm not exactly new to Linux, but I am new to kubuntu. I just switched from SUSE this evening. As a long(ish)-time SUSE user, I have become used to using "ll" to list the contents of a directory. This command is not available in kubuntu and it takes far too many keystrokes to type "ls -l" to perform the same function... HELP! How to I bring back my old friend ll? I know this is a simple fix, but I haven't been able to find out how to do it.

andykee
Oct 20th 2005, 12:21 AM
alias ll='ls -l'

i knew i'd remember as soon as i posted this!

andykee
Oct 20th 2005, 01:14 AM
well I thought I had it working... It works until I close the shell, then it dies. For whatever reason, it isn't saving the command... help again!

T-Diddy
Oct 20th 2005, 01:46 AM
Normally I have put those aliases in my .bashrc file (in my home directory). If you only do it in the shell, it only lasts for that session....

I have the following files:

(1) a ".bash_profile" in /home/<user>/
===== SNIP ====================
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

(2) a ".bashrc" file
===== SNIP =======================
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

alias emasc=emacs
alias ll='ls -l'
alias rm='rm -i'
alias cp='cp -vi'
alias mv='mv -vi'
alias wipe='wipe -i'

Hope that helps....

Cheers,

t.