LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-05-2009, 10:32 PM   #1
redlinuxxx
LQ Newbie
 
Registered: Sep 2009
Location: Seaside Heights
Distribution: Debian Slimed Down :)
Posts: 26

Rep: Reputation: 15
Post your .bashrc or alias list


most linux users when they get comfortable with the terminal learn after a little work it can save them lots of time... to save others time I suggest posting your alias lists or .bashrc so others can also use these tricks.

mine is launched from .bashrc but is a different file called .myshortcuts
Code:
# shortcuts to commands used constantly
alias reload='source ~/.myshortcuts; clear'
alias a='nano ~/.myshortcuts'
alias c='clear; clear'
alias ds='df -h'
alias dsc='df -h; (sleep 3s && clear)'
alias aptclr='sudo apt-get clean'

# shortcuts to programs and actions
alias chgnet='sudo nano /etc/network/interfaces'
#alias srtnet='source /etc/network/interfaces'
alias R='sudo shutdown -r now'
alias S='sudo shutdown -hP now'
alias O='opera&'
btw if anyone knows what command would reload the /etc/network/interfaces file let me no pls.
 
Old 10-05-2009, 10:55 PM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
Here are my most common ones:
Code:
function    p                { ${PAGER}  $@; }
function    e                { ${EDITOR} $@; }

function    ..               { cd ..; }
function    ,,               { cd ../..; }

function    pd               { pushd $@; }
function    pd2              { pushd +2 $@; }
function    pd3              { pushd +3 $@; }

function    l                { ls --color $@; }
function    sl               { ls --color $@; }
function    ll               { ls  --color -FAql $@; }
function    lr               { ls  --color -tFrql $@; }
function    la               { ls  --color -FAq $@; }
 
Old 10-06-2009, 01:27 PM   #3
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by redlinuxxx View Post
btw if anyone knows what command would reload the /etc/network/interfaces file let me no pls.
try this

Code:
service network restart
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using 'watch' on an alias in .bashrc slackist Linux - General 11 01-29-2016 01:09 PM
bashrc alias issue noir911 Linux - General 1 08-22-2006 05:24 AM
My first alias in .bashrc...'apostrophes 'getting' in the way?' Baix Linux - Newbie 3 06-17-2004 02:36 PM
alias and .bashrc whaase Linux - General 3 11-02-2003 07:03 PM
alias and bashrc Haldir Linux - Newbie 3 06-14-2002 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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