how do i create a document, then a directory and save the document in it.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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'.
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.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640
Rep:
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".
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)).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.