Computer scienceSystem administration and DevOpsCommand lineWorking with files

Explore folders and files

Sort files by size

Report a typo

Write a program that will sort the files from the /tmp/test folder by size in descending order and display the files and their size in the terminal.

Expected format:

total 20
12 script.sh
 4 my_python.py
 4 literature
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic