LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 10-25-2005, 05:30 AM   #1
zyphonic
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
Someone Please help (NEWBIE)


Can someone answer these linux questions please:

A)What is the term used (equivalent to "map") in UNIX when we describe the process of making drives available?


Identify the UNIX command required to carry out following instructions:


i) Remove all files in the directory "/tmp"


c) Identify the UNIX command to carry out the following instructions:

i) Make a directory called "hello" as a sub-directory of the current directory.

ii) Remove the just created directory "hello"

iii) Create a file named "myFile" in the current directory.

iv) List the contents of the current directory ensuring that all Directories in the listing are identified.


NEWBIE PLS HELP!
 
Old 10-25-2005, 06:14 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Per the rules:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.

http://www.linuxquestions.org/rules.php
 
Old 10-25-2005, 06:36 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
1) hotplug
2) umount /tmp
3) mknod --mode 755 hello c 216 0
4) rmmod -fv hello
5) mkswap myFile
6) cat /etc/mtab

Hope that helps dude!

4eva!!!!!!!11one
 
Old 10-25-2005, 06:42 AM   #4
Kerrysl
Member
 
Registered: Oct 2005
Location: Sydney, Australia
Distribution: Fedora 8, (previously FC6, FC5, FC4, FC3, & Mandrake 10)
Posts: 70

Rep: Reputation: 15
Some one will tell you to read the manual. There is lots of documentation within your distribution and even more available online.

However, just for my own re-education I will answer your questions.
A. The term is MOUNT. Until a drive is mounted its contents are unavailable.

B. Remove all files in directory /tmp. The command is - rm * /tmp
Be careful with 'rm' with a wildcard and a recursive flag it is possible to take out your whole system including all mounted drives if executed in '/' as the root user. Tread carefully my friend.

C. i. Change into the parent directory with the 'cd' command. Then use "mkdir hello"
ii. "rmdir hello"
iii. Someone correct me if I'm wrong but I don't think there is a shell command to create files. Simply use an editor to save a file with some or no text. In a GUI it will be File->Save As ...navigate to your directory endter "MyFiles" and press enter. I'm not a Vim or Emacs person so someone else can give your their commands.
iv. "ls -la" will give you a full list. The directorys will have a d as the first entry in the permissions string.

Additionally note that Linux uses "/" to separte directories not the windows "\". Also directory and file names are case sensitive. "mkdir Hello" and mkdir hello" will make two differnet directories.

Last edited by Kerrysl; 10-25-2005 at 06:44 AM.
 
Old 10-25-2005, 06:46 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
In future, please use a better title. People searching for answers to your questions will likely not come up with this thread. Interestingly, "newbie", "please" and "help" are among the least useful words in the context of a search.

If you don't understand your lessons (and by your questions I think that is a given), you should speak to your teachers instead of panicking and asking strangers on the internet to do it for you.

This is closed.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 01:50 AM
Linux semi-newbie and Wine vary newbie geovolt_os1 Linux - Software 4 04-19-2005 11:03 AM
newbie;I am a linux newbie who has installed slackware and have run into a few proble MollyJolly Slackware - Installation 6 06-01-2004 11:21 AM
How To Update To Slackware-Current For a Newbie, By a Newbie :) windsok Slackware 1 09-18-2003 08:53 PM
ipchains newbie. Kernel newbie skeletal29 Linux - Security 3 06-02-2002 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration