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
- Go to your home directory,
- Display the name of your home directory,
- Create a subdirectory infv320 under your home directory,
- Create a file called myfile.txt which contains Hello World
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started