LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 04: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 10:48 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-17-2010, 04:55 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

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, 05: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, 05:47 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
'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, 05:55 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
vi and awk?
 
Old 11-17-2010, 06: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, 06:13 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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, 06:28 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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, 06:30 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

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

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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, 06: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, 07:27 AM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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



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

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

All times are GMT -5. The time now is 04:06 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
Open Source Consulting | Domain Registration