User Tools

Site Tools


change_list_comman

How to change the list (ll) command

If you do a ls command at your command prompt, you get a list of the files in the directory you are currently in. Sometimes the output is not as informative as you would like to have. If you use your format for example ls -la you can make a shortcut for that if you do use the command often. To do so edit the following file:

 nano ~/.bashrc

Find the following entry or just enter the alias you like to use:

 # some more ls aliases
 alias ll='ls -alF'
 alias la='ls -la'
 alias l='ls -CF'
 alias lh='ls -lh'

you can add as many aliases as you like. After adding your alias save the file and reboot the machine.

Your ArtIT Team



BACK

change_list_comman.txt · Last modified: 2023/02/15 22:22 by admin