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

  • Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows....

    Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows. UNIX, or any other system that you like) for: creating a directory called hello world list the contents of this directory create a file called iwashere.txt display the contents of the file iwashere.txt from the command-line Please write a simple program in C for accepting a string from the command-line, reversing and printing the reversed string to standard output.

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

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

  • Starting New Processes We can create a new process from within another program using the system...

    Starting New Processes We can create a new process from within another program using the system library function: #include <stdlib.h> int system ( const char *str ); The system function runs the command passed to it as str and waits for it to complete. The command is executed as if the command, $ sh -c str Use the "man" command to study both the "sh" and "system" command. i.e. Execute $ man sh $ man system For example, $ sh...

  • Open vi or pico and create a script called Information.   Add the contents from the following table to the script: (Hin...

    Open vi or pico and create a script called Information.   Add the contents from the following table to the script: (Hint: use echo to add blank lines to your output and to write out the headings). Headings: Utilities (command to execute) Today’s date is: date The current users logged on to the system are: who My current startup directory is: pwd Today’s identification information is: id The processes running on my system are: ps Add a header to your Information...

  • LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check...

    LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...

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

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

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
ADVERTISEMENT