Announcement

Collapse
No announcement yet.

Useful bash aliases

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Useful bash aliases

    Here is a collection of useful aliases for bash you might find useful:
    alias ls='ls --color=auto'
    alias la='ls -a'
    alias ll='ls -l'
    alias sl='ls'
    alias upgrade='sudo apt-get update && sudo apt-get upgrade'
    alias install='sudo apt-get install'
    alias size='du -sh *'

    Originally posted by oshunluvr View Post
    alias cp="cp -i" # confirm before overwriting something
    alias df='df -h' # human-readable sizes
    alias free='free -m' # show sizes in MB
    alias suka='kdesudo kate'
    alias cate='kate'
    alias ssh='ssh -p 2222'
    alias ping='ping -c 5'
    alias blkid='sudo blkid -c /dev/null -o list'
    Originally posted by whatthefunk View Post
    alias rm='rm -i' #Gives a prompt before removing
    alias mv='mv -i' #Gives a prompt before overwriting
    alias reload='source ~/.bashrc' #Reloads .bashrc file
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    alias .....='cd ../../../..'
    alias f***x='xset -dpms' #Seriously, this needs to be fixed
    Know any more?

    #2
    alias remove='sudo apt-get remove'
    alias reinstall='sudo apt-get --reinstall install'
    alias shutdown='sudo shutdown -h now'
    alias reboot='sudo shutdown -r now'
    alias purge='sudo apt-get remove --purge'
    alias aptsearch='apt-cache search'
    alias today='date +"%A, %B %-d, %Y"'

    Comment


      #3
      Mine. Keep in mind, some are based on applications I have installed that you might not.
      Code:
      alias a='clear && alias | more'
      alias aa='clear && alias'
      alias aremove='clear && sudo apt-get autoremove'
      alias checkHD='clear && sudo smartctl --all /dev/sda'
      alias chkrk='clear && sudo chkrootkit'
      alias clean='clear && sudo apt-get clean'
      alias cleanup='clear && sudo apt-get --purge autoremove && sudo apt-get clean && sudo updatedb'
      alias debs='clear && ls -l /var/cache/apt/archives && ls -l /var/cache/apt/archives/partial'
      alias dependson='clear && apt-cache depends'
      alias dfsee='cd dfsee11x_linux/linux && sudo ./dfsee'
      alias dgrub='clear && cat /etc/default/grub'
      alias distupgrade='clear && sudo apt-get dist-upgrade'
      alias dload='aria2c '
      alias ealiases='clear && nano .bash_aliases'
      alias egrep='egrep --color=auto'
      alias fgrep='fgrep --color=auto'
      alias findit='clear && sudo find /* -mount -name'
      alias fstab='clear && cat /etc/fstab'
      alias getISO='aria2c -x2 '
      alias gpgkeys='clear && gpg --list-keys'
      alias grep='grep --color=auto'
      alias grub='clear && less /boot/grub/grub.cfg'
      alias hidden='ls -a | grep '\''^\.'\'''
      alias info='apt-cache policy'
      alias install='clear && sudo apt-get install'
      alias installNR='clear && sudo apt-get install --no-install-recommends'
      alias installed='dpkg --get-selections | grep install > junk'
      alias itsin='clear && apt-file find'
      alias kcmshell4='clear && kcmshell4 --list | sort'
      alias kfn='clear && ping www.kubuntuforums.net'
      alias killall='sudo killall -9'
      alias killzombie='sudo kill -9'
      alias kscrubber='clear && sudo kscrubber'
      alias l='ls -CF'
      alias la='ls -A'
      alias ll='ls -alF'
      alias ls='ls --color=auto'
      alias mp32wav='lame --decode'
      alias mtab='clear && cat /etc/mtab'
      alias myOS='clear && lsb_release -d -c'
      alias myhdd='clear && sudo sfdisk -uS -l /dev/sda'
      alias mykernels='dpkg --list | awk '\''/linux-image/ {print $2}'\'' && cat Documents/Remove\ a\ Kernel'
      alias nanoa='nano .bash_aliases'
      alias no#='clear && grep -v [#]'
      alias purge='clear && sudo apt-get remove --purge'
      alias revdepends='clear && apt-cache showpkg'
      alias rkh='clear && sudo rkhunter --check'
      alias sL='clear && cat /etc/apt/sources.list'
      alias sessions='clear && ls -lat ~/.kde/share/config/session/'
      alias show='clear && sudo apt-cache show'
      alias simI='clear && sudo apt-get install --simulate'
      alias simINR='clear && sudo apt-get install --no-install-recommends --simulate'
      alias simP='clear && sudo apt-get purge --simulate'
      alias simR='clear && sudo apt-get remove --simulate'
      alias simU='clear && sudo apt-get dist-upgrade --simulate'
      alias snano='sudo nano'
      alias ssh2kfn='ssh snowhog@www.kubuntuforums.net'
      alias startkdm='clear && sudo service kdm start'
      alias ua='clear && source ~/.bash_aliases'
      alias ugrub='sudo update-grub2'
      alias uinxi='clear && sudo inxi -U'
      alias update='clear && sudo apt-get update && sudo apt-file update'
      alias updatedb='clear && sudo updatedb'
      alias used='clear && df -hTtext4'
      alias version='clear && apt-cache policy'
      alias zombies='clear && ps -elF | grep Z'
      Last edited by Snowhog; Nov 21, 2012, 08:06 PM.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        WoW got a lot of alias's their dont ya Snowhog ,,,,,,,,,,,,,,,,,,something we should know about you there fella ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,LOL

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          My email 'tag' line at work reads:

          "It takes less time to take the time, to do it right the first time, than it takes to fix it the second time."

          I like to work 'smarter'; not 'harder'.

          Aliases are, for some, a not known/under-utilized 'tool' that makes life simpler, allowing you to work smarter.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Originally posted by Snowhog View Post
            My email 'tag' line at work reads:

            "It takes less time to take the time, to do it right the first time, than it takes to fix it the second time."

            I like to work 'smarter'; not 'harder'.

            Aliases are, for some, a not known/under-utilized 'tool' that makes life simpler, allowing you to work smarter.
            all right all right you can justify it any way you like but I still think your hiding from something .........

            No sereusly ,,, that is cool , I like all the posted ones

            VINNY
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment

            Working...
            X