diff --git a/index_ls.yml b/index_ls.yml index cfc0146..4ea662b 100644 --- a/index_ls.yml +++ b/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" diff --git a/ls/1_ls_with_options/code b/ls/1_ls_with_options/code index 19761b0..39c48e4 100644 --- a/ls/1_ls_with_options/code +++ b/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 ""