Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- path="/home/folder_2/b.exe"
- mkdir ~/folder_2
- mkdir ~/folder_1
- cd folder_2
- touch a.out
- touch b.exe
- touch c.html
- touch d.xhtml
- touch e.htm
- touch html.xml
- touch f.htmlhtm
- cd ~/folder_1
- touch a1b
- touch a2b
- touch a3b
- touch .a4b
- ln -s a5b $path
- ls -l a5b
- chmod 444 a1b
- chmod 652 .a4b
- chmod 510 b.exe
- chmod 755 c.html
- chmod 357 html.xml
- chmod u+x .a4b
- chmod g+r .a4b
- chmod o-r .a4b
- chmod u-w b.exe
- chmod u+x b.exe
- chmod g+x b.exe
- chmod o-r b.exe
- chmod o+x b.exe
- chmod o-w html.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement