Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write down UNIX utilities or commands (bash) for the following questions. 1·List

ID: 3686717 • Letter: W

Question

Write down UNIX utilities or commands (bash) for the following questions. 1·List all .c file in current directory. 2. Count the number of .c files in current directory. 3. Change the access permission of file foo from r -w-x to rwxr-x--x 4. Execute command "sleep 20" in background. " with initial value "3320 5. Define a environmental variable named “number 6. List all running process and append all output to the end of file out.txt 7. Declare a local variable named "my_date" with initial value of the output of utility date 8. Output the return value (exit code) of last program. 9. Send a QUIT signal to the program with pid 123456.

Explanation / Answer

1. ls *.c

2. ls | wc -l

3. chmod 751 foo

4. sleep 20 &

5. $ export number=3320

6. ps -aux > out.txt

7.my_date=`date +%Y%m%d%H%M`

echo $my_date

8. echo $?

9. kill -3 123456

10.alias hello 'echo "Hello World!"'

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote