Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-10-2016, 06:57 AM   #1
Registered: Jun 2016
Distribution: Ubuntu
Posts: 63

Rep: Reputation: Disabled
Question what is "l" command, it doing similar to ls

ls command shows the following

a  code  controller.js  mani  sparat  this  ubuntu.gif
l command the shows similar to that

a/  code/  controller.js  mani/  sparat/  this/  ubuntu.gif
what is difference between them

My distro is ubuntu
Old 06-10-2016, 07:04 AM   #2
Senior Member
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 2,371
Blog Entries: 3

Rep: Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049
"l" is an alias, not a program on its own like "ls". If you type "alias" and then press enter, you will see a list of the shortcuts that Ubuntu has pre-configured for you If you type "man ls" you can then get a full description of what those options do as well as other options.

You can make your own aliases easily with the "alias" command. It is built into bash, so you will find information about it buried deeply in the manual page for "bash" itself. Type "man bash" to get that.
1 members found this post helpful.
Old 06-10-2016, 08:25 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,823
Blog Entries: 27

Rep: Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122
Member response


As a Bash user you can create your own :~$ .bashrc file to contain the alias commands;
Sample .bashrc for my users

~$ cat  .bashrc
#08-30-06 12:20 gws copied loki:/root

# Add bin to path
export PATH="$PATH:$HOME/bin"

# Dynamic resizing
shopt -s checkwinsize
#save bash history so as to share

shopt -s histappend
PROMPT_COMMAND='history -a'

# Custom prompt
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

#08-29-06 11:40 gws

if [ `id -un` = root ]; then
   PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
   PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
# Add color
eval `dircolors -b`

#Terminus is a very nice Unicode font for the Linux console
#02-02-12 gws
#from dugan's site

#04-30-12 11:41 removed
#if [ $TERM = "linux" ]; then
#    setfont ter-v16n

# User defined aliases
alias cls='clear'
alias clls='clear; ls'
alias ll='ls -l'
alias listlong='ls -l'
alias lsa='ls -A'
alias lsg='ls | grep'
alias lsp='ls -1 /var/log/packages/ > package-list'
alias na='nano'
alias web='links -g -download-dir ~/'

#08-29-06 11:50 gws

#To clean up and cover your tracks once you log off
#Depending on your version of BASH, you might have to use
# the other form of this command
   trap "rm -f ~$LOGNAME/.bash_history" 0
#The older KSH-style form
#   trap 0 rm -f ~$LOGNAME/.bash_history
Hope this helps.
Have fun & enjoy!
1 members found this post helpful.
Old 06-10-2016, 08:29 AM   #4
LQ Addict
Registered: Jan 2011
Posts: 8,563
Blog Entries: 13

Rep: Reputation: Disabled
To "see" what the current setting is, use
type l
My output:
l is aliased to `ls -CF'
To keep as is, but not use the alias:
l: command not found
If it is an alias. Likely.

Last edited by Habitual; 06-10-2016 at 08:31 AM.


command line

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU Linux Command similar to QNX "ditto" jogl_z_8 Linux - Newbie 2 01-04-2013 09:32 AM
Centos Server Failed @ Bootup: Missing "/sbin/blkid" & "fsck" command not found beagle7 Linux - Newbie 4 08-24-2012 01:33 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
C/C++ functions similar to BASH's "cp", "mv", "mkdir", etc? kornerr Programming 10 04-23-2006 09:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration