LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2010, 05:23 AM   #1
faca5
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: Disabled
Commands in Linux


Hello.

This is list of simple commands on linux. Forgot useful command? Add in your posts.


ls – show folders and files
chmod - change permission to folder/file
mc - program as norton commander
chown - add permission to user
less – iskanje datoteke ali mape
chgrp - change groups
rm - delete folder/files
mv - move folder/file
man - show help for each command
info - information
cp –help - show help
cp - copy folder/file
pwd - current folder
cd - go in folder
cd ~ - go in home folder
mkdir - make folder

Last edited by Tinkster; 11-17-2010 at 11:48 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-17-2010, 05:55 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
One of my favourites:
fortune -o - shows "offensive" (maybe to some people) quotes, some satirical, some obscene(?), some wise.
 
Old 11-17-2010, 06:43 AM   #3
JoshyJ
Member
 
Registered: Nov 2003
Location: Sydney , Australia
Distribution: Fedora
Posts: 49

Rep: Reputation: 1
apropos - search the man pages headings and descriptions (Useful to find commands)
grep - print lines matching given pattern
 
Old 11-17-2010, 06:47 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
'sed' - a stream editor. One of the most useful tools that lets you do various things quickly.
More examples here: http://www.grymoire.com/Unix/Sed.html
 
Old 11-17-2010, 06:55 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
vi and awk?
 
Old 11-17-2010, 07:10 AM   #6
JoshyJ
Member
 
Registered: Nov 2003
Location: Sydney , Australia
Distribution: Fedora
Posts: 49

Rep: Reputation: 1
ps - shows current processes
 
Old 11-17-2010, 07:13 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
top
 
Old 11-17-2010, 07:21 AM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Some more advenced use of mkdir:

Code:
mkdir -p media/{films/{fiction,non-fiction},music/{jazz,rock,guitar},pics/{wallpapers,pics}}

The above command will create the following directory structure:
Code:
$ tree media
media
|-- films
|   |-- fiction
|   `-- non-fiction
|-- music
|   |-- guitar
|   |-- jazz
|   `-- rock
`-- pics
    |-- pics
    `-- wallpapers
 
2 members found this post helpful.
Old 11-17-2010, 07:28 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by sycamorex View Post
Some more advenced use of mkdir:

Code:
mkdir -p media/{films/{fiction,non-fiction},music/{jazz,rock,guitar},pics/{wallpapers,pics}}
Sweet

Strictly speaking it is an advanced use of bash's brace expansion.
 
Old 11-17-2010, 07:30 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
My all time favorite: dd
 
Old 11-17-2010, 07:35 AM   #11
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by catkin View Post
Sweet

Strictly speaking it is an advanced use of bash's brace expansion.
Fair enough
 
Old 11-17-2010, 07:54 AM   #12
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by linuxlover.chaitanya View Post
top
htop!
 
Old 11-17-2010, 08:27 AM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Look at
Linux Command Guide 
 as it will cover more than you should ever need to know about.

Just a few more links to aid you to gaining some understanding;


1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Getting Started with Linux

The above links and others can be found at 'Slackware-Links'. More than just Slackware® links!
 
  


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
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 07:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 07:53 AM


All times are GMT -5. The time now is 10:49 AM.

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