Using the Unix/Linux shell (bash) write these following commands in a console wi
ID: 3835899 • Letter: U
Question
Using the Unix/Linux shell (bash) write these following commands in a console windows.
1. Make a directory called test 2. Change your working directory to test 3. print your working directory 4. List the names of the files in your directory 5. Make an empty file in your directory named file1 6. Make a copy of file1 and call it file2 7. List the names of the files in your directory 8. Change the name of file2 to file3 9. List the names of the files in your directory 10. Delete file file3 11. List the details of the files in your directory 12. Change the permissions of file1 so that users, group and other can all read, users and group can write, users can execute 13. List the details of the files in your directory 14. List the details of the files in your parent directory 15. Show the processes running. 16. Use vi to write a java program that loops forever, i.e. an infinite loop. 17. Compile the program 18. Run the program as a background task 19. Show the processes running and note the PID of your program (name will be java) 20. Kill your program 21. Show the processes running and note the PID of your program is missing 22. Change your directory to the your parent directory 23. Print your working directory 24. List the details of the files in your directory 25. List the details of the files in the subdirectory test 26. Delete test and all the files it contains with a single command 27. List the details of the files in your directory
Explanation / Answer
mkdir test // this will create a directory name test
cd /test // this will change a working directory to test. here we will give a ful absolute path also.
Suppose if test folder has parent folder user then our command should be cd /user/test
pwd // it will print name of current working directory
ls // it will print list of all directory, present in that directory
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.