Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "Do you want to execute the program? (y/n):"
- read input
- if [ $input == "n" ];
- then
- exit
- fi
- cd ~/Desktop
- mkdir exam
- mkdir exam/dir{1..3}
- cd exam/
- ls -a
- touch dir2/file{1,2}
- cd dir2
- cp file1 ../dir3/file1_copy
- mv file1 file1_renamed
- mv file2 ../dir1/
- cd ..
- rm dir2/file1_renamed
- rmdir dir2
- rm -r dir3
- cat >> dir1/file1
- echo "This is a test" >> dir1/file1
- cat > dir1/file3
- echo "Goodbye" >> dir1/file3
- cd dir1
- cat file1 file3 > ../file_conc
- cd ..
- ln -s ~/Desktop/ exam_link
- ls -lR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement