Firefox and google chrome file in Linux

In Linux related Operating Systems Firefox and Google Chrome related files (bookmarks, history, addon’s, session history, and etc…) are stored in your user home directory.

Firefox files are stored in $HOME/.mozilla directory.

Google Chrome files are stored in $HOME/.config/google_chrome directory.

-Sany

Delete a line from text file with line number using sed

 

Sed is a stream editor for filtering and transforming text.

With sed we can delete a line using its line number without opening the text file.

Lets test with a example:

$ cat input.txt 

1

2

3

4

input.txt contains 4 lines with content as shown above.

Now I would like to delete line number 3 from input.txt

$ sed -i "3d" input.txt

$ cat input.txt

1

2

4

After running sed command as shown above just check the input.txt file where we can see that line 3 will be deleted.

-Sany

Ubuntu Install Firefox Stable Version

There are two types of firefox versions

  1. Stable Version: Which is official release
  2. Development Version(Called as beta version or with some other name): Which is under development

Procedure to install firefox stable version:

  • sudo add-apt-repository ppa:mozillateam/firefox-stable
  • sudo apt-get update
  • sudo apt-get install firefox

Procedure to install firefox development version:

  • sudo add-apt-repository ppa:mozillateam/firefox-next
  • sudo apt-get update
  • sudo apt-get install firefox

After installing firefox development version you can’t directly install firefox stable version, since apt-get always try to install most recent version of firefox from available list, but there is a way to to install the stable version with following procedure:

  • sudo apt-get remove firefox
  • Go to directory /etc/apt/sources.list.d
  • Delete the files mozillateam-firefox-next-lucid.list.save and mozillateam-firefox-next-lucid.list 
  • Now again install firefox with sudo apt-get install firefox

-Sany