Command Line Not Working

Command Line Not Working

after I initially installed ubuntu , I can run 'll' in my terminal.

But after I checked a "Run command as login shell" in terminal preferences I cannot run "ll" command any more in terminal.

Something I am missing?

Thanks

2 Answers

Normaly, ll is not a shell command. It is just an alias defined in ~/.bashrc file as follow:

alias ll='ls -alF'

So, check in your ~/.bashrc file if you have anymore the above line (in my .bashrc file is located somewhere at the line 93).

2

Look at this.

Running command as login shell executes ~/.bash_profile or ~/.profile, instead of ~/.bashrc. If you still want 'll' to work when using login shell, put

alias ll='ls -alF'

in either ~/.bash_profile or ~/.profile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.