LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

View Poll Results: Do you like this thread or found it helpful.
Completly Yes! 1 16.67%
Sort of yes 0 0%
In the middle of yes and no. 1 16.67%
Not really. 1 16.67%
Not at all! 3 50.00%
I am a Troll so I am going to leave a troll comment. 0 0%
Multiple Choice Poll. Voters: 6. You may not vote on this poll

Reply
 
Search this Thread
Old 11-07-2010, 12:57 PM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Rep: Reputation: 2
Cool Some great terminal commands you might want to know. (Along with a description.)


Code:
cd
cd is a command that allows you to move between directors. (cd means change directory.) Here are some examples on how to use is:

Code:
cd
This alone takes you back to your home directory.

Code:
cd ~/Desktop/
This takes you to where you desktop folder is. The ~ means home directory if you want to use one command instead of

Code:
cd
cd Desktop
To auto complete file names you use tab.(note: it can not guess the file name if other start with similar beginnings.)

If you want to leave a note in your commands you use #. Example.

Code:
cd # This takes you back to your home directory
If you want to know whats in a file you use:
Code:
ls
ls Lists everything in a directory not hidden if you want to see hidden files you use:

Code:
ls -a
The dash signifies a option. The a option means all and it shows all the the files but not files within files.

Do you want to know how to move files here you go:

Code:
mv ~/Desktop/item ~/place\ for\ this\ item/
If you were wondering mv does mean move how mv works is you type mv the directory to get to the file and the the place you want it to go.

To look up commands:

Code:
man cd
man means manual. Then you type what command you want it to look up if there is a entry for it.

For those who want to make files you use:

Code:
mkdir the
This should make you a directory called the inside the directory your in.

Those of you who want to remove files and directors you use:

Code:
rm # you can use the the -r option to remove directors in linux for bsd you use -rf
rm will remove files but if you want to use the -r option. (side note: rm means remove.)

To copy file use:

Code:
cp ~/document ~/Documents# cp means copy
This will move file document to directory Documents.

That's all I can think of for know I will post later if I can think of more.

(Also if you see errors in what I have said just post what it is and I will fix it)

Last edited by darkstarbyte; 11-08-2010 at 06:12 PM.
 
Old 11-07-2010, 01:53 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Some points of attention:

Quote:
Code:
cd ~Desktop/
Should be: cd ~/Desktop


Quote:
If you want to know whats in a file you use:
Quote:
ls Lists everything in a file not hidden if you want to see hidden files you use:
Use directory instead of file.


Quote:
For those who want to make files you use:
Code:
mk the
Use directory instead of file.
mk is not a normal Linux command. mkdir is.

Last edited by druuna; 11-07-2010 at 02:55 PM.
 
Old 11-07-2010, 08:19 PM   #3
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Rep: Reputation: 51
They are some useful commands, but a lot are "common sense" to most Linux users, even newer ones.
 
Old 11-08-2010, 06:17 PM   #4
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Original Poster
Rep: Reputation: 2
Exclamation

I could put df, fdisk, fsck, umount, and so on with commands that use the hard drive along with dd, you know the ones if your not careful you can really screw up your computer excluding df.

Only if the ones I posted before are to simple.

Sorry if I am being rude I didn't mean to be.

Last edited by darkstarbyte; 11-08-2010 at 06:20 PM. Reason: Just had to.
 
Old 11-08-2010, 06:32 PM   #5
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Rep: Reputation: 51
I didn't find you rude at all. Even if others do, this is just the internet.
 
Old 11-08-2010, 06:57 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,174
Blog Entries: 4

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
Once this is complete and all proof readers are happy with it, it would be a good idea to post it in the Linux Tutorials section. That way it won't get pushed down the forums. You would also have a dedicated thread opened to discuss the Tutorial.

If you do write it up there, drop me a message via PM or the email contact in my profile and then report your own post to have this closed (to prevent having two discussions).
 
Old 11-08-2010, 08:01 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
What's wrong with this tutorial:

http://linuxcommand.org/
 
Old 11-08-2010, 10:37 PM   #8
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Yes, i like the first post.
When i started with PC's, not long ago, i would have been happy to get those commands sorted first.
Most of the books i read were way too difficult.
First things first: move around and have a look.
Once one knows that one might search for more advanced documentation.

Perhaps you might add the idea to create a test directoy, say ~/Test or ~/Temp, where one might create, delete, copy and move around without worrying about it.

Good, i like it.
 
  


Reply

Tags
commands, linux, terminal, users


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
[SOLVED] Terminal commands working in terminal but not in a script GreYFoXGTi Linux - Newbie 1 08-04-2010 09:36 AM
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 06:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 06:53 AM
Basic commands with short description needed...Can you anybody.... varul Linux - Newbie 3 05-08-2008 01:57 AM


All times are GMT -5. The time now is 04:41 AM.

Main Menu
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