LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-29-2003, 11:16 PM   #1
Uchiha sasuke
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
Newbie question


Can soneone explane me what is variable in Linux ? what does it mean ? and what does it do ? what is the difference between variable and command ?
Thank you
 
Old 10-29-2003, 11:30 PM   #2
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Environment variable; the ones like PATH, XMODIFIERS, PKG_CONFIG_PATH. The ones with capital letters. They are set to certain values. You can view them with echo $VARIABLE_NAME e.g. "echo $PATH".

Command; there are build-in commands in bash and programs. The build in ones are like ls, ln, cd etc. Programs can be induced through bash by giving command, such as mplayer, rename, man etc. As far as I understand when you type "man name_of_build_in_command", it would not return man page, but will list down build-in commands instead. Whe you "man program_name", then it will give you some manual for that program.

Hopefully these will give you some clue.
 
Old 10-29-2003, 11:32 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"Can soneone explane me what is variable in Linux ?"

A variable is a name that contains some useful information. An example of a variable is PATH which contains the names of the directories where Linux looks for the commands that you execute. You can display any variable with the echo command:
echo $PATH
echo $HOME

You can create a variable with the export command:
export MYNAME=Uchiha
echo $MYNAME

Variables do not have to be capitalized but most people do that to distinguish variables from commands.

A command starts a program. echo is a program, so are mozilla, export, mount, and thousands of others.

Commands are usually small letters to distinguish them from variables.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-29-2003, 11:53 PM   #4
Uchiha sasuke
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks alot , now it makes more sense
 
  


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
Very Newbie Question. Please Help imfineru Linux - Newbie 8 08-20-2005 06:09 AM
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 09:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 01:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 07:40 PM
Security question {newbie question} Radio Linux - Security 3 05-17-2002 07:32 PM


All times are GMT -5. The time now is 03:57 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