The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

default behavior for ls (list) command???

Discussion in 'General Discussion' started by jols, Aug 29, 2007.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    We just put on a new cPanel server. The other cPanel servers we manage automatically display dot files, just with the "ls" and no other options, i.e. without having to ls -a

    Does anyone know where I can set the prefs for this so just a straight ls will list all the files including the dot files?

    Thanks very much for any response here with this.
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Check /root/.bashrc file and there you can define the alias for any command such as:

    alias ls='ls -a'

    In this way, you only have to enter ls but as ls is the alias of ls -a so you will see the dot files too.
     
  3. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Hey thanks very much!
     
Loading...

Share This Page