LINUX STUFF HELP PLZ
Go to solution
Solved by omniomi,
# ls -l
Will give you the output in a long list format.
Personally though I generally use:
# ls -alhF
In Ubuntu the alias ll is mapped to ls -alF by default, I modified it to add the -h... So from the prompt I just run:
# ll
And you get:
root@omn:/var# lltotal 56Kdrwxr-xr-x 14 root root 4.0K Jun 29 14:35 ./drwxr-xr-x 22 root root 4.0K May 7 17:20 ../drwxr-xr-x 2 root root 4.0K Aug 22 06:33 backups/drwxr-xr-x 10 root root 4.0K May 7 17:20 cache/drwxrwxrwt 2 root root 4.0K Apr 20 2014 crash/drwxr-xr-x 39 root root 4.0K May 8 11:01 lib/drwxrwsr-x 2 root staff 4.0K Apr 10 2014 local/drwxrwxrwt 3 root root 4.0K May 7 23:25 lock/drwxrwxr-x 14 root syslog 4.0K Sep 16 06:32 log/drwxrwsrwt 2 root mail 4.0K Apr 16 2014 mail/drwxr-xr-x 2 root root 4.0K Apr 16 2014 opt/lrwxrwxrwx 1 root root 4 Apr 20 2014 run -> /run/drwxr-xr-x 7 root root 4.0K May 8 11:00 spool/drwxrwxrwt 2 root root 4.0K Jul 2 16:25 tmp/drwxr-xr-x 8 root root 4.0K Jul 2 10:05 www/root@omn:/var# root@omn:/var# root@omn:/var# type llll is aliased to `ls -alhF'
To set an alias in bash:
# alias ll="ls -alhF"
To make it permanent you need to add it to your ~/.bashrc file. Ie:
# some more ls aliasesalias ll='ls -alhF'alias la='ls -A'alias l='ls -CF'
Note: as someone mentioned -1 gives you a single column list but without the details. Just the file/folder names.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now