LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2005, 02:29 AM   #1
tableyou
LQ Newbie
 
Registered: Oct 2005
Posts: 13

Rep: Reputation: 0
manipulating files


i got a problem with copying files...and creating files....
where shld i create my files n directories?
i tried creating a folder in /tmp folder - file1 , then create a directory using mkdir folder1
after which i cd tmp
cp file1 folder1

and there was this thing called:
cp: omitting directory `file1/'

i was following step by step provided by linuxcommand.org

can anyone tell me where did i go wrong...yep thks
 
Old 11-08-2005, 02:37 AM   #2
avatarfx
Member
 
Registered: May 2004
Posts: 34

Rep: Reputation: 16
First things first. I recommend you to play with your files on your home folder (usually /home/your_username) because there you shouldn't have any problems with permissions and so.

Now, when creating a directory over /tmp, there might be apermissions problem, but I do not have enough information.

Try it on your home folder and let me know what happens.
 
Old 11-08-2005, 02:45 AM   #3
tableyou
LQ Newbie
 
Registered: Oct 2005
Posts: 13

Original Poster
Rep: Reputation: 0
im using mandriva does not have home folder
i tried creating a folder at the same place with my Desktop/ tmp/ folders
but still cant.
yea
 
Old 11-08-2005, 03:11 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally posted by tableyou
im using mandriva does not have home folder
I doubt that (but OK, not familiar with Mandriva).

Let's find out:
Open a terminal and type pwd and press <enter>. What does it give you?

Last edited by Wim Sturkenboom; 11-08-2005 at 03:13 AM.
 
Old 11-08-2005, 03:21 AM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
type :

Code:
cd
OR

Code:
cd ~
to be taken to your home directory
 
Old 11-08-2005, 03:24 AM   #6
avatarfx
Member
 
Registered: May 2004
Posts: 34

Rep: Reputation: 16
Mandriva have a home folder (any distro as far as I know and I have userd Mandriva before). You can also go there by using:

cd ~

The only exception is THAT YOU'RE LOGGING AS ROOT.... if that so, please create a user before you continue and use that user. Use root JUST IN CASE IS NEEDED. Logging as root is not a good practice, specially if you are learning the Linux and Unix environments.

Once you do that, then you will have a home folder.
 
Old 11-08-2005, 03:26 AM   #7
tableyou
LQ Newbie
 
Registered: Oct 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Wim Sturkenboom
I doubt that (but OK, not familiar with Mandriva).

Let's find out:
Open a terminal and type pwd and press <enter>. What does it give you?

heh, it says /home,yea,im kinda new to this.=(
so wad do i do next?
 
Old 11-08-2005, 03:35 AM   #8
avatarfx
Member
 
Registered: May 2004
Posts: 34

Rep: Reputation: 16
It's ok, don't get dissapointed. If you found the /home folder, now type:

cd /home;ls

and this will show you the users... you should be able to see your user as a folder ok? when you find it type:

cd your_username

and there you go.... you are in your user's folder.

From here you can play adding and removing files without any danger. you can play with this:

mkdir newfolder
cd newfolder
touch hello.txt
echo "Hello World" > hello.txt
cat hello.txt
mv hello.txt welcome.txt
ls

Have fun Remember that if you need any help with an specific command, just type:

man my_command

for example:

man mkdir

(use "q" to exit the manual pages)
 
Old 11-08-2005, 03:38 AM   #9
tableyou
LQ Newbie
 
Registered: Oct 2005
Posts: 13

Original Poster
Rep: Reputation: 0
mmm okie=)
thks alot.
yep
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing/manipulating text files winchester169 Linux - Software 3 08-18-2005 07:01 PM
Manipulating NICs ? Infernal211283 Linux - Newbie 5 04-28-2005 12:46 PM
bash script on manipulating files fiomba Linux - Software 8 10-30-2004 09:31 PM
Manipulating Files in vi Baldorg Linux - General 1 09-19-2003 08:25 PM
Manipulating the PATH variable. redgore Linux - General 2 07-11-2002 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration