Browse Source

find 2

master
zeus 4 years ago
parent
commit
2d0b0e9681
  1. 16
      find/1_Find_with_permission/code
  2. 1
      find/1_Find_with_permission/codeanswer
  3. 0
      find/1_Find_with_permission/codehelp
  4. 24692
      find/1_Find_with_permission/data
  5. 15
      find/1_Find_with_permission/info
  6. 9
      find/1_Find_with_permission/q-info
  7. 23
      index_find.yml

16
find/1_Find_with_permission/code

@ -0,0 +1,16 @@
echo "Files With 777 Permissions"
find /usr -type f -perm 0777
echo "Files without 777 Permissions"
find /usr -type f ! -perm 0777 | head -5

1
find/1_Find_with_permission/codeanswer

@ -0,0 +1 @@
find /usr -type f -perm 0777 | grep conf

0
find/1_Find_with_permission/codehelp

24692
find/1_Find_with_permission/data

File diff suppressed because it is too large

15
find/1_Find_with_permission/info

@ -0,0 +1,15 @@
Find Files With Permissions
Find all the files whose permissions are 777.
[source.sh]
----
find /usr -type f -perm 0777
----
Or Without 777 Permissions
[source.sh]
----
find /usr -type f ! -perm 0777 | head -5
----

9
find/1_Find_with_permission/q-info

@ -0,0 +1,9 @@
Try to run
[source,sh]
----
find /usr -type f -perm 0777 | grep conf
----
and see the Results!

23
index_find.yml

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

Loading…
Cancel
Save