LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-01-2012, 08:05 AM   #1
unixor
Member
 
Registered: Aug 2012
Posts: 46

Rep: Reputation: Disabled
options


hello!

how do I change default text viewer?

also, in which file can I access/edit from terminal the bash options and general linux options?

in Ubuntu 12.04

thanks!
 
Old 11-01-2012, 08:25 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
~/.bash_profile and ~/.bashrc and sometimes ~/.bash_aliases

See man bash and look at the section INVOCATION. It will tell you the process of how bash loads its configuration files.
 
Old 11-01-2012, 08:33 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
how do I change default text viewer?
Make sure, are you asking for text viewer or text editor?

Quote:
in which file can I access/edit from terminal the bash options and general linux options?
Are you asking about shell or envorinmental variables? If so, then by editing the .bashrc (but I won't recommend doing this). Instead you can set value of any variable using following syntax in bash:
<variable_name>=<value>
export <variable_name>
Eg. history=500
export history
Then to check value assigned to any variable, use either:
echo $<variable_name>
Or for full listing, invoke cmd:
env

Last edited by shivaa; 11-01-2012 at 08:35 AM.
 
Old 11-01-2012, 12:02 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
If you find a text file in Nautilus, right click, and choose "properties" you have an "open with" option. At least, you do in Gnome; I'm never too sure what Unity gets up to!
 
  


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
Proper make options and gcc options for my particular processor CyclicFlux Linux - General 1 08-17-2012 07:49 PM
How do I delete KDE options without deleting Dolphin's options? Mr. Alex Linux - Software 1 10-27-2011 06:06 AM
[SOLVED] Kernel boot options removed by fault, no boot options cdt Linux Mint 8 09-08-2011 11:25 PM
[SOLVED] modifying stream id of ip options Error options (unknown 136) MegaMindd Programming 0 06-07-2011 09:17 AM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM

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

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