Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 7658  / 2 Years ago, thu, march 24, 2022, 4:28:05

I entered la accidentally instead of ls to view the contents of a directory and it produces exactly the same output as ls...



Why is this? Surely it doesn't make sense to have two commands that do the exact same thing.


More From » 14.04

 Answers
1

la is an alias to ls -A defined in ~/.bashrc file in Ubuntu.



It only shows the same output if you have no hidden files or directories.



ls -A shows hidden files and directories.


[#12696] Friday, March 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
serveeel

Total Points: 347
Total Questions: 106
Total Answers: 117

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
;