Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-01-2012, 08:05 AM   #1
Registered: Aug 2012
Posts: 46

Rep: Reputation: Disabled


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

Old 11-01-2012, 08:25 AM   #2
Senior Member
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,850
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
~/.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
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
how do I change default text viewer?
Make sure, are you asking for text viewer or text editor?

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:
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:

Last edited by shivaa; 11-01-2012 at 08:35 AM.
Old 11-01-2012, 12:02 PM   #4
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,623

Rep: Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462
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!


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration