Need help with simple Linux commands

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Need help with simple Linux commands
# 1  
Old 02-03-2012
Question Need help with simple Linux commands

Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated.
Code:
 1.      Logon to Linux.
   
  2.      Create a directory "Unix" under your home directory.

Command(s): ………………………………………….
 
 
  3.      Create four sub-directories bin, conf, docs and data under the directory 
"Unix" created by you in step 2. See the directory diagram below:

  Command(s): ………………………………………….
 
 
  4.      Create the document called “sed-info” in your "Unix" directory using touch command.
 
 
  Command: ………………………………………….
 
 
  5.      Create the document called “join-info” in your "Unix" directory using touch command.

Command: ………………………………………….
 
 
  6.      While in the Unix directory, move the files "sed-info" and  "join-info" to directory “docs” using a single UNIX command.

Command: ………………………………………….
 
 
  7.      Change to your home directory.

Command: ………………………………………….
 
 
  8.      Use a single command to rename and move the “sed-info” from the “docs” directory to the “bin” directory.
   
  Command: ………………………………………….
 
 
  9.      Change to the data directory.
   
  Command: ………………………………………….
 
 
  10.  While in the data directory create a command that would copy the  “sed-info” from the “bin” directory and “join-info” from the docs  directory to the “conf” directory using a) absolute paths and b)  relative paths.
   
  Command (relative path): ………………………………………….
   
  Command (absolute path): ………………………………………….
   
  11.  Move to your home directory. Create a single command that would  delete the Unix directory and all the files and subdirectories of the  Unix directory.
   
  Command: ………………………………………….

Diagram for #3:
Image
# 2  
Old 02-03-2012
Look above :
Homework & Coursework Questions Students must use and complete the template provided. If you don't, your post may be deleted! Special homework rules apply here.

So read the rules and post again after having adequately filled the form template
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help with simple Linux commands - NEWBIE here!

Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated. 1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies

2. UNIX for Dummies Questions & Answers

help with simple terminal commands

i am at home with a windows xp home, and i am using putty terminal to access my linux mathlab account, my task is to compile and run a C program, called a.c, i used gcc -Wall -g -o mycode a.c to compile it into a mycode file now when i want to run it, i was told i had to use $... (2 Replies)
Discussion started by: omega666
2 Replies

3. Shell Programming and Scripting

Simple script editing text files and running commands

Okay this will probably have multiple parts to it but I don't really want to trouble you guys with more help because I'm a total noob so I can just do the first part by hand (it's just editing a few hundred lines of text in a file; I have to do the same thing on each line and I'm sure there's a... (2 Replies)
Discussion started by: guitarscn
2 Replies

4. UNIX for Dummies Questions & Answers

awk simple commands merge

Is there nice awk code for merging the following commands and do the last task? input1 ab100 xxx 100 blahblah + 1000 ab100 yyy 90 blahblah + 1000 ef390 ggg 200 blahblah - 2000 ef390 aaa 100 blahblah - 2000 df888 ttt 300 ... (5 Replies)
Discussion started by: ruby_sgp
5 Replies

5. Red Hat

Writing simple python setup commands

Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles? Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages... (0 Replies)
Discussion started by: Linux Bot
0 Replies

6. UNIX for Dummies Questions & Answers

running a simple script file with multiple commands

I'm trying to run a script file with multiple commands that I would normally type into the command line. The commands are: #!/bin/bash diff Test1.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1.o0 > differences2 diff Test1a.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1a.o0 >> differences2... (1 Reply)
Discussion started by: knelson
1 Replies

7. Shell Programming and Scripting

Simple rm commands in my server

Hi all, I have PLESK to manage my virtual dedicated server. The most recent version left a favicon.ico file in all my domains and subdomains. I want to delete them without having to go into each individual folder. So I'd like to remove favicon.ico from every subfolder of /var/www/vhosts/ ... (4 Replies)
Discussion started by: chickenhouse
4 Replies

8. Shell Programming and Scripting

Modifying simple commands to create a script

Can anyone direct me to a resource that explains scripting in simple terms? I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Discussion started by: rocinante
8 Replies

9. UNIX for Dummies Questions & Answers

simple Unix commands

Just hoping someone can help me out. I am looking for what should be simple commands to enter for this information: List of all Unix users (is this etc/passwd?) List of all users' access capabilities (is this etc/group?) Password settings (e.g., password expiration interval, minimum password... (2 Replies)
Discussion started by: i don't care
2 Replies

10. UNIX for Dummies Questions & Answers

simple commands

Can anybody help me how to display a list of unix commands. I have an account in unix,just start to use it, but don't know how (1 Reply)
Discussion started by: aningsabah
1 Replies
Login or Register to Ask a Question