Need help with simple Linux commands - NEWBIE here!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need help with simple Linux commands - NEWBIE here!
# 1  
Old 02-03-2012
Error 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.
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: ………………………………………….

# 2  
Old 02-03-2012
This look very much like homework to me ... Thread closed unless you can justify...
Read the forum rules again: There is a forum for class / homework...
And this forum has strict rules you are to comply with if you do not want to be banned...
https://www.unix.com/homework-coursework-questions/
https://www.unix.com/homework-coursew...ons-forum.html
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

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. 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. Shell Programming and Scripting

simple problem for a newbie

I am trying to find a way to display just sudoers, passwd and shadow files without the extensions.. Thank you for any suggestions ls -lrt /etc | egrep 'sudoers|passwd|group|shadow' -r-------- 1 root root 1338 Oct 31 2006 shadow.sav -r-------- 1 root root 5191... (4 Replies)
Discussion started by: delphys
4 Replies

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

4. UNIX for Dummies Questions & Answers

AIX commands newbie

Guys i am a newbie with AIX. I would be glad if you can help me produce answers in this questions. thanks 1. Check server connectivity 2. Check/review/investigate for login failure detection 3. Check/review/investigate for user login failure 4. Check/review/investigate for Revoke Detection... (0 Replies)
Discussion started by: redtred
0 Replies

5. Shell Programming and Scripting

Newbie problem with simple script to create a directory

script is: dirname= "$(date +%b%d)_$(date +%H%M)" mkdir $dirname should create a directory named Nov4_ Instead I get the following returned: root@dchs-pint-001:/=>./test1 ./test1: Nov04_0736: not found. Usage: mkdir Directory ... root@dchs-pint-001:/=> TOO easy, but what am I... (2 Replies)
Discussion started by: gwfay
2 Replies

6. Programming

newbie to unix programming in C, needed a few simple prgs on these functions!

Hi all, I am a newbie to unix programming using C.. So i would like to have a few simple C programs to start off with.. I wanted programs on learning , abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg It would be really great if i can have... (1 Reply)
Discussion started by: wrapster
1 Replies

7. UNIX for Dummies Questions & Answers

Simple newbie grep question

How come grep testfile1 won't find anything in testfile1 (even though the characters sd are there in great quantity), but grep '' testfile1 will find plenty? Do the single quotes prevent the shell from interpreting the testfile1 is interpreted as: grep *test whether or not characters sd exist*... (5 Replies)
Discussion started by: doubleminus
5 Replies

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

9. Shell Programming and Scripting

Newbie needs help with simple script

Hi, I'm just new here, looks like there is alot to read. I need some help on a simple script that i would like to make, and I honestly have zero experience with shell scripts or anything, so i have no idea what I am doing. I want to have a script that I can upload to to my webhosting... (12 Replies)
Discussion started by: shizizzle
12 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