The chage command

Posted on July 17th, 2008 in Basics, Commandline Tools, Security by admin

chage changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change her password. The chage command is restricted to the root user, except for the -l option, which may be used by an unprivileged user to determine when her password or account is due to expire.

Have a nice customized .bashrc file

Posted on July 16th, 2008 in Applications, Commandline Tools, Tweaks by admin

Screenshot

Right Click the file below and save it to your home folder.

Backup your current bash profile by  “mv .bashrc .bashrc.bak

then mv bashrc.txt .bashrc

File: bashrc

Kudos goes to ayoli for this.

Search and Replace in Vi/Vim

Posted on June 25th, 2008 in Basics, Commandline Tools by admin

In Vi or Vim, use the forward slash </> to search. Then type in your search string and hit <Enter>. You can navigate through occurrences of your search string using <n> to move forward and <N> to move backwards. Below is an example search for the string ‘array’.

Put irssi in a chroot jail

Posted on June 5th, 2008 in Applications, Commandline Tools, Security by admin

Irssi is a popular IRC client. Its a very popular client for small window managers like fluxbox. This short howto will walk you though the steps for setting up a jail that only has a few commands in it and will help create a much safer IRC enviroment for you. There are a couple things you will need to have installed before we get started. First you need irssi, next you will need jail. First step is to install jail and irssi, so that irssi will work from your regular linux or unix install.

Burn CDs in the Commandline with Bashburn

Posted on June 4th, 2008 in Commandline Tools, Multimedia by admin

Sick of all those fancy CD-burning apps not working for you? You need something that just gets the work done? Welcome to BashBurn – It just works!

BashBurn is a collection of scripts for CD burning in a Linux console (BashBurn might very well work in *BSD, Solaris etc. but it is developed and tested only under Gentoo Linux). BashBurn was previously named Magma. It’s not the best looking CD-burning application out there, but it does what you want it to do (And if not then probably didn’t want to do it anyway).

Copy between files in vi/vim

Posted on May 29th, 2008 in Commandline Tools by admin

VI editor is a very powerful editor. Suppose you want to copy line numbers 1-10 and 23-77 of file A and paste them on file B at the same time, what will you do ?? Here I am giving a tip to do this :

Some Emacs Basics

Posted on May 18th, 2008 in Basics, Commandline Tools by admin

Emacs is a class of text editors that have an extensive set of features and that are popular with computer programmers and other technically proficient computer users.

GNU Emacs, a part of the GNU project, is under active development and is the most popular version. The GNU Emacs manual describes it as “the extensible, customizable, self-documenting, real-time display editor.” It is also the most portable and ported of the implementations of Emacs. As of March 2008, the latest stable release of GNU Emacs is version 22.2. Emacs should be included in most distro’s or easily installable from your distro’s repo’s.

Welcome to the Linux Command Line Interface Desktop

Posted on May 15th, 2008 in Commandline Tools by admin

TuxTraining.com has covered numerous commandline applications but now it’s time to tie it all together. So Ctrl Alt F6 and get to that command line, because you don’t need no stinkin GUI. ;)

Colored ls Output

Posted on April 15th, 2008 in Commandline Tools, Tweaks by admin

Unix uses the ls command to list the contents of a directory. By default ls displays all directories and files the same way, leaving you without the ability to quickly determine what type of files you are looking at (in Unix everything is a file).

Customizing Your Bash Prompt

Posted on April 15th, 2008 in Commandline Tools, Tweaks by admin

Customizing the default shell prompt not only makes the terminal that much more exciting, it will also help you remember which system you are currently on and the directory you are about to run a command in (Yea!, no more incessant pwd commands). This is especially useful for those late night pesky phone calls letting you know that you have to come into work early, really, really early; to fix the server that the underpaid incompetent third string sysadmin was supposed to be watching! Arriving on site with multiple windows open mixed with sleep deprivation can have some very devastating results. Running shutdown or init in the wrong window can really hurt.

Next Page »