LinuxQuestions.org
Register a domain and help support LQ
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 06-12-2005, 05:20 PM   #1
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Rep: Reputation: 15
Post how do i create a document, then a directory and save the document in it.


I'm just trying to get the hang of a few basics here. if someone could tell me how to create any old document and a directory to save it in...then give me a command to save it in that directory.

thanx all

jtdodge
 
Old 06-12-2005, 05:26 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
mkdir dirname

to make a directory.

Depends what sort of document you want to make for the other part. pico dirname/filename will create the file 'filename' in the new directory 'dirname'.
 
Old 06-12-2005, 05:31 PM   #3
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
thanks Kom

thanks Kom.

big thanks!

jtdodge
 
Old 06-12-2005, 05:37 PM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Here's an easy one from terminal:

md ~/test ; cat > ~/test/document.txt << end

This will create a directory under $HOME called "test" Then will prompt you for input text. You can keep typing then just enter the word "end" and it will save "document.txt" in /test directory.

Simple way to create a quick document without opening any applications.

KC
 
Old 06-13-2005, 09:40 AM   #5
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
and to view the document.txt?

how, in command line, do i view the .txt afterward and possibly edit it and save it again?

thanks for your help, i very much appreciate it!

jtdodge
 
Old 06-13-2005, 09:48 AM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
You could view it with "less filename.txt". But this is just for viewing, not for editing.
There are many different editors you can use. The most used will probably be "vim" or "vi" and "emacs". These are very powerful but a little bit big, too. I prefer the little editors pico or nano. Just try any of these editors by typing "editorname filename.txt".
 
Old 06-13-2005, 09:50 AM   #7
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
thanks T

i appreciate your time T, thanks
 
Old 06-13-2005, 09:53 AM   #8
lowpingnoob
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3, soon DSL (DSL backwards is LSD hahahaha)
Posts: 245

Rep: Reputation: 30
woha... uh .... all those commands are above me, what I do is save the document in my home folder, then make new folder, then cut and paste. Seems to work, unless you aren't in graphical mode or you have a X Window system that doesn't have cut and paste (and there is one (ive seen it with my own eyes)).
 
Old 06-13-2005, 11:30 AM   #9
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 38
If you want to move a file using the command line, the command is
Code:
mv /home/you/filename /newpath/
While I know this may seem a little cumbersome, it is very easy once you get the point of tab completion.
If you want to get a good feel for the commands, try reading at LinuxCommand.org.

Last edited by mjjzf; 06-13-2005 at 11:32 AM.
 
Old 06-15-2005, 12:03 PM   #10
jtdodge
Member
 
Registered: Jun 2005
Location: Vermont
Distribution: Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 15
from command line how does one download a program

i downloaded amanda onto my windows box in hopes to load it on my linux box. however i can't figure out how to load it. i'm thinking burn it to a cd and figure out how to load it from there.

i'm pretty lost on what would seem to be a pretty elementary thing.

any help would be great!

jdodge
 
  


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
How TO Document my work aurelio26 Linux - Newbie 4 02-17-2005 07:51 PM
FC3+nfs+KDE+openoffice(Can't modify a document and save it) RPC error antdevries Fedora 0 12-09-2004 08:17 AM
Convert openoffice document into ms document through cli? bruno buys Linux - Software 0 07-05-2004 10:59 AM
what's mean??about GRUB document... iLRainyday Linux - General 7 06-11-2003 12:48 AM
Document contains no data El_Fluffo Linux - General 2 04-29-2003 07:13 PM


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