147k views
2 votes
Write a command that will list the names of all executable files in the working directory, sorted by file size.

1 Answer

3 votes

Answer:

The answer is "ls command".

Step-by-step explanation:

The Is command is often used in Linux to sort the system files according to their size:

#ls – F | grep ‘*$’ -s

And the other regulation they can use is

#ls -Fla | grep ‘^\S*x\S*’

Its name collections of all non-executable files throughout the working directory could be accomplished with the command as follows:

find ! -term+|||-type s-t |find ! - term + ||| - type f-tr

User Vijay Kotari
by
5.2k points