Question

INFO 1211

Lab 0: Essential UNIX Operations

Objectives

At the end of this of lab, you should be able to:

  • securely      log in to a remote computer running a UNIX-like operating system

  • read the      manual page for any command

  • use the      UNIX file system

  • edit a      text file

Notes:

·         In order to get familiar with UNIX, do all your work on UNIX.

·         A command line interface may be harder to learn, but can be more powerful for scripting and automating tasks.

·         Unlike in DOS, where a command can be run in both lower- and uppercase, Unix commands are generally in lowercase.

Actions

Login remotely to the Red Hat server of KPU using “PUTTY” client.

  1. 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.

  2. UNIX can      be used concurrently by multiple users. Type "who" to see who is logged in.

  3. 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.

  4. 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.

  5. Use the      "echo" command to      create a one-line file (foo1) with      the content:
         "Quick brown fox."

  6. Use the      "cat" command to      create a multi-line file (foo2) with      the content:
                     First line
                     Second line   

Use "ls" to list all the files in the current directory


0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 9 more requests to produce the answer.

1 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
INFO 1211
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not...

    A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not really a stream of characters and doesn't contain anything at all. True False Relative pathnames begin with the root directory. True False Running the ls -a command uniquely identifies directories and binary executables. True False What is the result of running mkdir -p share/man/cat1 from the command line? a. It creates the directory share. b. It creates the directory share/man. c. It creates the...

  • Linux ps is a command that displays information about all processes currently running in your system....

    Linux ps is a command that displays information about all processes currently running in your system. Read man page of ps command. Enter the following commands: (1) ps-ef more and (1) ps -ef | more and (2) ps-aux | more. Both of these will result in displaying a long list of processes. Identify what processes are started when the system is booted, and what processes are started later on. For each process, find out who owns it, what code it...

  • Hide Assignment Information Instructions Instructions for Lab 6 First, a little review on processes How to...

    Hide Assignment Information Instructions Instructions for Lab 6 First, a little review on processes How to view processes (6 minutes) On the top of all your documents, always include these items: your name: date: Lab number Repeat the process that you used to save the log file that will be produced by this lab. You can either use the log feature on putty or the script command at the shell prompt. Login to our system and follow these steps while...

  • 1. We can "download" a Unix command and the results from that command into a file...

    1. We can "download" a Unix command and the results from that command into a file on our local computer using copy and paste using a word processor such as Word, and then open the Unix Window using the download command 2. When a user is logged on to their account on hills on more than one computer at the same time, which command can display a list of these sessions? whoami kill history ps 3. When your session on...

  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • What are the exact commands I should use to complete the task. 1. Using the ps...

    What are the exact commands I should use to complete the task. 1. Using the ps –ef and grep command list all processes started by you (i.e. owned by your userid). (Hint: ‘^userid’ with match with a line that start with userid.) 2. Run command group (echo “Snoozing…”; date; sleep 50; echo “Awake.”;date ) > sleep.out & Note: Do not omit the parenthesis!!! 3. Repeat 1, identify process number of the process sleep 4. Display the content of file sleep.out...

  • Round 1: sequence.c This program should read and execute a list of commands from stdin. Each comm...

    Round 1: sequence.c This program should read and execute a list of commands from stdin. Each command and its arguments (if any) will appear on a separate line. For example, if the file "cmdfile" contains the lines: whoami cal 4 2019 echo The time is: date then running 1 /sequence< cmdfile should output your username, a calendar of the month of April, the string "The time is:", and the current date/time, to standard output. Suggested approach: first, make sure you...

  • Using Unix processes Submit a README file that lists the files you have submitted along with...

    Using Unix processes Submit a README file that lists the files you have submitted along with a one sentence explanation. Call it Prj1README. MakeCopy.c : Write a C program that makes a new copy of an existing file using system calls for file manipulation. The names of the two files and copy block sizes are to be specified as command line arguments. Open the source file in read only mode and destination file in read/write mode. ForkCopy.c : Write a...

  • Using your vi(m) editor, answer the following questions and email it to your instructor. Note that...

    Using your vi(m) editor, answer the following questions and email it to your instructor. Note that I am not looking for perfect answers. This activity if to practice vi(m). Good practice site http://vimgenius.com/ On the top of all your documents, always include these items: your name: date: Answers for week 3 What are the names of the parts of a UNIX command? List them, and give a brief description of each. Can multiple UNIX commands be typed on the same...

  • Project 1: Implementing a Shell 1 Overview In this individual project you will have to design...

    Project 1: Implementing a Shell 1 Overview In this individual project you will have to design and implement a simple shell command interpreter called mysh. The basic function of a shell is to accept lines of text as input and execute programs in response. The shell must be able to execute built-in commands in a process different from the one executing mysh. 2 Requirements When first started, your shell should initialize any necessary data structures and then enter a loop...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT