LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Commands in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/commands-in-linux-844779/)

faca5 11-17-2010 04:23 AM

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

brianL 11-17-2010 04:55 AM

One of my favourites:
fortune -o - shows "offensive" (maybe to some people) quotes, some satirical, some obscene(?), some wise.

JoshyJ 11-17-2010 05:43 AM

apropos - search the man pages headings and descriptions (Useful to find commands)
grep - print lines matching given pattern

sycamorex 11-17-2010 05:47 AM

'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

linuxlover.chaitanya 11-17-2010 05:55 AM

vi and awk?

JoshyJ 11-17-2010 06:10 AM

ps - shows current processes

linuxlover.chaitanya 11-17-2010 06:13 AM

top

sycamorex 11-17-2010 06:21 AM

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


catkin 11-17-2010 06:28 AM

Quote:

Originally Posted by sycamorex (Post 4161730)
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.

TobiSGD 11-17-2010 06:30 AM

My all time favorite: dd

sycamorex 11-17-2010 06:35 AM

Quote:

Originally Posted by catkin (Post 4161742)
Sweet :)

Strictly speaking it is an advanced use of bash's brace expansion.

Fair enough:)

Mr. Alex 11-17-2010 06:54 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 4161717)
top

htop!

onebuck 11-17-2010 07:27 AM

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!


All times are GMT -5. The time now is 11:16 PM.