Ubuntu – change default command options

command linels

When I enter command


I see a list of files and directories in current directory, the list displayed is quite annoying.

Rather, I like to execute ls command with -1 option like

ls -1

My question is how to change default behavior of ls command such that it will always execute with -1 option. i.e how to display files and directories in one column with ls command.


Best Answer

One way would be by creating alias in your ~/.bashrc file:

alias l1='ls -1'

then by typing l1, ls -1 will be executed