Explore BrainMass
Share

Demonstration of several unix commands

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Using UNIX
Please explain how to do the following:

1. Create a directory called class.

2. Move into that directory directory.

3. Create a text file, that contains what is your absolute path, relative path and call it paths.txt

4.Create a sub directory called your name under the class directory.

5. Create a file called my.dat with your favorite quote.

6. Rename the file to my.txt

7. Delete the file.

8. Delete the directory

9. Show the current directory using the pwd command.

10. List the date and time.

© BrainMass Inc. brainmass.com October 16, 2018, 9:24 pm ad1c9bdddf
https://brainmass.com/computer-science/files/demonstration-several-unix-commands-182895

Solution Preview

For each of the ten items listed in the problem I will explain the command that is used to accomplish the task and then show the command as it would be typed from the command line. The prompt for each command will be >.

To create a directory in UNIX you use the "mkdir" command.

> mkdir class

To move into a directory ...

Solution Summary

In this solution I demonstrate how to use several unix commands to create directories, change directories, and remove directories. I also show a simple way to create a file and view the current path information.

$2.19
Similar Posting

Demonstration and explanation of unix "cut" command

If I have a database record in the following format

name:address:city:state:phone

Notice each entry is separated by a :

I need to be able to use the cut command to grab each field and using command substitution be able to assign them to their own variables.

For example:
If I have the following record:

George:2345 Gway:Jville:FL:1231231234

How would I assign George to a name variable?
How would I assign 2345 to an address variable and so on?

View Full Posting Details