Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Login remotely to the Gator server of KPU using PUTTY client ( PUTTY is a free and open - source terminal emulator )
Login remotely to the Gator server of KPU using PUTTY client PUTTY is a free and opensource terminal emulator
Every UNIX system maintains an internal clock that you can access to print the current system date and time. Type date to see the current date and time.
UNIX can be used concurrently by multiple users. Type "who" to see who is logged in
Type ps to see the processes running on your terminal. You will see a process called bash shell is running. Note that each active process has a unique number.
Type "man date" to see a description of the "date" command. Type man who and man ps to see the descriptions of the who and ps commands.
Type "man man" to see a description of the "man" command.
Use the "echo" command to create a one line file foo with the content:
"Quick brown fox."
Use the "cat" command to create a multiline file foo with the content:
First line
Second line
Use vi to save your name and student ID to foo text file
Use ls to list all the files in the current directory
Use mv to rename foo to foo
Use cp to make a copy of file foo called foo
Use rm to delete foo
Create a directory drafts and move foo there. Use utilities mkdir and mv
Change working directory to drafts and list all the files. Use cd and ls
Move back to your home directory and delete drafts directory. Note that rmdir would not delete a directory, unless it is already empty.
Create a directory Lab in the Lab directory create a file answers.txt
Change your working directory to Lab follow the following steps, and put the answers to the following questions in answers.txt
Look at the man page for the "uname" command. Use the uname command with different options to find the following information.
a The name of your machines operating system
b The version of the operating system
c The machine hardware name
d The network node hostname
Specify the uname option you use and the output for each in answers.txt file.
Explain how the "whatis" and "apropos" commands differ from the "man" command.
Explain how you delete a nonempty directory with one command.
Enter the following six commands, and note your observations in answerstxt:
who, tty tput clear, id ps and echo $$
Run the ps and note the PID of your shell. Log out and log in again and run ps again. What do you observe?
Create two file foo and foo with the echo command, and then use
cat foo foo What do you observe? Now run the command cat foo and note your observation.
Create a file foo containing the word hello dolly. Now create a directory bar, and then run mv foo bar. What do you observe when you run both ls and
ls bar?
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