LinuxQuestions.org
Review your favorite Linux distribution.
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 04-19-2012, 12:52 AM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
help understand a couple commands and a service


I have been using linux for a while But I see some commands from tutorials on how to do some things and I do not know what exactly a command is used for when in fact it can be done with other ways. I usally use root or super user to do things. I know what wget does but what about cat, sudo, proc, and apt-get. What are they for. Also why would I want to setup a proxy? Isn't that really just for trying to hide your real ip? It seems there are other uses.
 
Old 04-19-2012, 12:59 AM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 454

Rep: Reputation: Disabled
Almost all of those Linux commands have a man page you can look at for more help like this:

Code:
man cat
man sudo
man proc
man apt-get
They all have different purposes and usually a summary of the program's function is in the man page. For example, here's the brief outline for cat from its man page:

Quote:
cat - concatenate files and print on the standard output
As for proxies, yes that is one common function of a proxy but it can do a lot more. You probably don't need it.
 
Old 04-19-2012, 01:05 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,295

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
Here's a nice searchable HTML version of man which also searches other places http://linux.die.net/man/; a little easier to read/follow x-refs
 
Old 04-19-2012, 01:06 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,655

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
I suggest you to use normal user account instead of root or superuser and start to play with them. Use root only when you really need it!
there are a lot of other commands to work with, like grep ...
 
Old 04-19-2012, 01:14 AM   #5
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pan64 View Post
I suggest you to use normal user account instead of root or superuser and start to play with them. Use root only when you really need it!
there are a lot of other commands to work with, like grep ...
yes that is another one I run across a lot so I just looked at this man. This is a first for man for me too. So it breaks down it all and explains what it is for. I have seen like apt-get used with grep at the same command. Does the | symbol just mean its like enter a command on another prompt but in fact you can do it on the same line?
 
Old 04-19-2012, 01:42 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,655

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
| is pronounced as pipe, and you can "connect" commands:
commanda | commandb means the output of commanda is piped into commandb.
An example:
ls -l /etc will list the content of the folder /etc
grep "passwd" will search for the text passwd
and now see the result of:
ls -l /etc | grep passwd
 
Old 04-19-2012, 03:45 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
I know what wget does but what about cat, sudo, proc, and apt-get. What are they for.
Every command have its own functionality. You need to go through the man pages and documents of these commands and all.
Quote:
Also why would I want to setup a proxy? Isn't that really just for trying to hide your real ip?
Did you go through the documents of proxy server, search on google?
 
Old 04-19-2012, 10:21 AM   #8
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Satyaveer Arya View Post
Every command have its own functionality. You need to go through the man pages and documents of these commands and all.

Did you go through the documents of proxy server, search on google?
hey thanks a bunch all. These man pages is what I have needed. I have not been aware of them and I have used linux for quite some time.
 
Old 04-19-2012, 10:36 AM   #9
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Whatever command you use, my suggestion is to go through the man pages of those commands. And also google is there to search with lots of links with lots of help.
 
Old 04-19-2012, 12:37 PM   #10
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
When you're ready to get into it into more detail, these links should help you.

http://www.linuxcommand.org/index.php
http://mywiki.wooledge.org/BashGuide
http://ss64.com/bash/
 
  


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
how to understand commands jeni_m110 Linux - General 2 11-15-2009 02:58 PM
Couple questions about implementing shell commands rohando Programming 2 06-29-2008 03:35 PM
Your server that understand few voice commands (USB mic.) frenchn00b Linux - General 0 01-15-2008 02:23 PM
Why doesn't linux understand my commands crazyjedi Linux - Newbie 3 03-10-2006 07:35 PM
Couple questions, service command and pureftpd DigiCrime Linux - Software 3 05-29-2003 10:12 PM


All times are GMT -5. The time now is 12:54 PM.

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