From 7accc01b1d89a4e668257726204dddea240b7f4e Mon Sep 17 00:00:00 2001 From: amin Date: Mon, 20 May 2024 00:57:11 +0100 Subject: [PATCH] docs: change the cmd 'tar -czf home.tar.gz .' to 'ls -lRr / 2>1 >/dev/null' --- subjects/0-shell/job-control/README.md | 8 ++++---- subjects/0-shell/job-control/audit.md | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/subjects/0-shell/job-control/README.md b/subjects/0-shell/job-control/README.md index dd23792ae..def29996f 100644 --- a/subjects/0-shell/job-control/README.md +++ b/subjects/0-shell/job-control/README.md @@ -31,18 +31,18 @@ This project will help you learn about: ``` student$ ./0-shell -$ tar -czf home.tar.gz . & +$ ls -lRr / 2>1 >/dev/null & [1] 8287 $ sleep 50 & [2] 8870 $ jobs -[1]- Running tar -czf home.tar.gz . & +[1]- Running ls -lRr / 2>1 >/dev/null & [2]+ Running sleep 50 & $ jobs -l -[1]- 8287 Running tar -czf home.tar.gz . & +[1]- 8287 Running ls -lRr / 2>1 >/dev/null & [2]+ 8870 Running sleep 50 & $ kill 8287 -[1]+ Terminated tar -czf home.tar.gz . +[1]+ Terminated ls -lRr / 2>1 >/dev/null $ jobs [2]+ Running sleep 50 & $ exit diff --git a/subjects/0-shell/job-control/audit.md b/subjects/0-shell/job-control/audit.md index cef148bb7..781b3766e 100644 --- a/subjects/0-shell/job-control/audit.md +++ b/subjects/0-shell/job-control/audit.md @@ -4,10 +4,10 @@ #### Functional -##### Try to run the command `"tar -czf home.tar.gz . &"` then run the command `"jobs"`. +##### Try to run the command `"ls -lRr / 2>1 >/dev/null &"` then run the command `"jobs"`. ``` -[1]+ Running tar -czf home.tar.gz . & +[1]+ Running ls -lRr / 2>1 >/dev/null & ``` ###### Can you confirm that the program displayed a list with the status of all jobs like in the example above? @@ -15,7 +15,7 @@ ##### Try to run the command `"jobs -l"`. ``` -[1]+ 13612 Running tar -czf home.tar.gz . & +[1]+ 13612 Running ls -lRr / 2>1 >/dev/null & ``` ###### Can you confirm that the program added the process ID to the normal information given in the command `"jobs"` like in the example above? @@ -31,7 +31,7 @@ ##### Try to run the command `"sleep 50000 &"` then run `"python &"` and press enter without any input in the last command. ``` -[1] Running tar -czf home.tar.gz . & +[1] Running ls -lRr / 2>1 >/dev/null & [2]- Running sleep 50000 & [3]+ Stopped python ``` @@ -41,7 +41,7 @@ ##### Try to run the command `"jobs -r"`. ``` -[1] Running tar -czf home.tar.gz . & +[1] Running ls -lRr / 2>1 >/dev/null & [2]- Running sleep 50000 & ``` @@ -66,12 +66,12 @@ ##### Try to run the command `"kill %1"`. ``` -[1] Terminated tar -czf home.tar.gz +[1] Terminated ls -lRr / 2>1 >/dev/null ``` ###### Can you confirm that the program killed and displayed the first process like in the example above? -##### Close the program and run it again. Try to run the commands `"tar -czf home.tar.gz . &"`, `"sleep 50000 &"` and then run `"fg"`. +##### Close the program and run it again. Try to run the commands `"ls -lRr / 2>1 >/dev/null &"`, `"sleep 50000 &"` and then run `"fg"`. ``` sleep 50000