Linux
1)What is the command or commands that would list the contents of the /var/log directory in alphanumeric order?
2)What is the command or commands used to list the files in /var/log in order of their size?
Answer 1:
Answer 1
by default ls command will sort the files alphanumarically
Answer 2: ls --sort=size -l
you need pass size for sort parameter
Get Answers For Free
Most questions answered within 1 hours.