Question: UNIX 2.1 Problem 1: Document your testing Write a script that will use commands echo, date, cal to print the account name of the person

UNIX

2.1 Problem 1: Document your testing

Write a script that will use commands echo, date, cal to print the account name of the person executing the script, the date when the script is being tested, and the month.

The following lists the result when I test my script.

-bash-4.1$ ./problem1.sh

username is testing this script on Tue Apr 12 23:08:10 MST 2016 in April 2016

Su Mo Tu We Th Fr Sa

1 2

3 4 5 6 7 8 9

10 11 12 13 14 15 16

17 18 19 20 21 22 23

24 25 26 27 28 29 30

-bash-4.1$

2.2 Problem 2: Create and browse files

Write a script that will use commands cd, pwd, mkdir, ls, echo to

  1. Go to your home directory,
  2. Display the name of your home directory,
  3. Create a subdirectory infv320 under your home directory,
  4. Create a file called myfile.txt which contains Hello World
  5. List the content of the current working directory including the hidden files.

2.3 Problem 3: Pipes

Write a command which will use both wc and ps to display the current number of processes for your account

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!