Linux Commands / Tips

Welcome Guest Login or Register
Total Members: 5


TITLES:

|| HOME | Contact Us ||
|| Add Command ||

  • Aliases
  • Backup
  • cp
  • Insertion of a password into a pdf file
  • Play video DVD ISO file with Xine
  • Quick format of CD-RW
  • Removing old kernels
  • Searching
  • Split
  • xorg.conf ModeLine
  • Search:

    Showing Aliases

    Scroll Down to see the comments / add comments

    Submitted by: painethom | Total Views: 314

    change the df command to show in megabytes all the time instead of bytes. It's more meaningful to read when you are listing files.

    Edit /etc/bashrc. At the bottom of the file, place any aliases you want to use.

    A few of mine are:

    # Change the disk free command to show megabytes instead of bytes
    alias df="df -h"
    # Make a new alias called duh to show disk usage with a max depth of 1. This shows how big directories are easily.
    alias duh="du -h --max-depth=1"
    # Change ll to show megabytes as well.
    alias ll="ll -h"

    | Add Comment |

    Comments

    Name: Comment


    Linux Commands by CodeHeads and Paul Smith © 2006 All Rights Reserved! All information on this site is property of the respected owners (posters)