Choose style:

Author Topic: Path of .bashrc file in Peppermint 6 and How to add alias into it-SOLVED  (Read 1477 times)

0 Members and 1 Guest are viewing this topic.

Offline rajeev2631007

  • Member
  • ***
  • Posts: 234
  • Karma: 24
  • New Forum User
    • View Profile
Hi,

I want to know what is the  path of .bashrc file in Peppermint 6 and How to add alias in it.

Regards,

Rajeev Gautam
« Last Edit: February 02, 2016, 11:14:01 pm by rajeev2631007 »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4893
  • Karma: 1053
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Path of .bashrc file in Peppermint 6 and How to add alias into it
« Reply #1 on: January 27, 2016, 03:23:27 am »
Hi,

I want to know what is the  path of .bashrc file in Peppermint 6 and How to add alias in it.

Regards,

Rajeev Gautam
The path you're looking for is:
Code: [Select]
~/.bashrc
to open it, enter:
Code: [Select]
gedit ~/.bashrc
The following link will help you with creating aliases in .bashrc: how-do-i-create-a-permanent-bash-alias  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2020
  • Karma: 532
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Path of .bashrc file in Peppermint 6 and How to add alias into it
« Reply #2 on: January 27, 2016, 06:48:42 am »
Hi rajeev2631007,

As an example of an alias to check for updates and upgrade your system from a terminal, use this alias:


Code: [Select]
alias checkupdates='sudo apt-get update && sudo apt-get upgrade'

in your .bashrc file. After making the changes and saving them, open a terminal and run

Code: [Select]
alias

to see your aliases and to activate the newest one.

Basically an alias looks like this:

Code: [Select]
alias name-of-alias='what-to-run-with-the-alias'

No spaces around the = sign and single quotes around what-to-run-with-the-alias.

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline rajeev2631007

  • Member
  • ***
  • Posts: 234
  • Karma: 24
  • New Forum User
    • View Profile
Re: Path of .bashrc file in Peppermint 6 and How to add alias into it --SOLVED
« Reply #3 on: February 02, 2016, 01:57:09 am »
Thanks you Slim.Fatz and Andy for you help.

I also found one tutorial for alias I hope it will be useful for other.



regards,

Rajeev Gautam