zeus 4 years ago
parent
commit
14e76d3aaa
  1. 23
      index_ls.yml
  2. 10
      ls/1_ls_with_options/code

23
index_ls.yml

@ -26,3 +26,26 @@
points: "" # ELO
output:
log: "bash"
1_ls_with_options:
display_name: "ls_with_options"
swarmlabservice: "os2"
info:
file: "1_ls_with_options/info"
code:
lang: "bash"
exec: "/bin/bash"
file: "1_ls_with_options/code"
data: "1_ls_with_options/data"
options: ""
mimetype: "bash"
output:
log: "console"
mimetype: "bash"
challenge:
question: "1_ls_with_options/q-info"
codehelp: "1_ls_with_options/codehelp"
codeanswer: "1_ls_with_options/codeanswer"
mimetype: "bash"
points: "" # ELO
output:
log: "bash"

10
ls/1_ls_with_options/code

@ -1,13 +1,13 @@
echo "List Files and Directories with / Character at the end"
echo "List Files and Directories with / Character at the end"
echo "-----------------------------"
ls -F /
ls -F / | head -5
echo ""
echo "Recursively list Sub-Directories"
echo "-----------------------------"
ls -R /
ls -R / | head -5
echo ""
@ -15,12 +15,12 @@ echo "Sort Files by File Size"
echo "-----------------------------"
ls -lS /usr/share
ls -lS /usr/share | head -5
echo ""
echo "Display UID and GID of Files"
echo "-----------------------------"
ls -n /usr/share
ls -n /usr/share | head -5
echo ""

Loading…
Cancel
Save