Currently browsing category

Linux

Linux Core Dump Files

Linux sometimes dumps a huge file when a script crashes. These core files can build up and eat away valuable disk space. Some other methods of deleting core files will damage your server. Here are a few simple commands I use to find and delete these core dump files safely. …

Basic vi Commands

General Startup To use vi: vi filename To exit vi and save changes: ZZ or :wq or : x To exit vi without saving changes: :q! To enter vi command mode: [esc] Counts A number preceding any vi command tells vi to repeat that command that many times. Cursor Movement …

Linux Typical Dot Files

There is some redundancy across these programs. For example, the look and behavior of emacs can be customized by usinng the .emacs file, but also by adding the appropriate modifications to the .Xdefaults file. Default versions of these files are often installed in users’ home directories when the software packages …

Set your PATH variable under Linux

This article explains how set your PATH variable under Linux. This has the same use as that of setting the PATH variable under DOS. Under Linux too, modifying the PATH would add these new directories to your default search path. So in case you have a particular executable in a …

Linux ls command

This command of Linux lists the contents of a directory. By default current directory. -a Shows you all files, even files that are hidden (these files begin with a dot.) -A List all files including the hidden files. However, does not display the working directory (.) or the parent directory …

Basic Linux Commands

Command Example Description cat Sends file contents to standard output. This is a way to list the contents of short files to the screen. It works well with piping. cat .bashrc Sends the contents of the “.bashrc” file to the screen. cd Change directory cd /home Change the current working …