Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    3
    Trophy Points:
    168
    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:
    3
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jols

    jols Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice