How to disable visual mode on mouse select for vim
If selecting text with the mouse in vi enters visual mode, it can cause copy-and-paste problems. To prevent visual mode, create or edit vi ~/.vimrc and add set…
23 articles on this topic
If selecting text with the mouse in vi enters visual mode, it can cause copy-and-paste problems. To prevent visual mode, create or edit vi ~/.vimrc and add set…
There are several ways to convert uppercase strings to lowercase in Bash: tr, awk, Bash 4.0 expansion, or Perl.
Use date with -d in Bash to display yesterday's date or an earlier date.
A small Bash shell tip: remove trailing spaces, leading spaces, or both from a variable with sed.
Shell techniques for counting blank and nonblank lines in a file, useful in scripts and troubleshooting.
How to redirect standard output and standard error to a log file. Correct syntax: command > /path/to/log 2>&1. This redirects stdout to the log and stderr to stdout.
An overview of if/else statements in Bash scripts and comparison conditions. Basic if syntax: if [ condition ] then ... fi.
tail is widely used for viewing logs in real time (tail -f /var/log/logfile). MultiTail provides similar functionality with multiple windows in one console.
Bash autocompletion makes Linux work much more convenient. For me it is essential because it makes commands quicker to use.
If testing a shell script produces [: =: unary operator expected error, check the if condition on the reported line to see whether the variable has a value and whether the code…
On UNIX or Linux, you can extract selected files or directories from a tarball without first extracting everything. This is more convenient and saves space…
Managing output is a common task in Linux. Commands often redirect errors and output to files so they can be stored and inspected later, especially commands…
Linux crontab alone cannot specify the last day of a month or its first Saturday. These scripts add that control to scheduled commands.
Administrators have several ways to send messages to users logged in to a text-mode system. This article covers broadcasting to all users and sending directly to one user.
One advantage of Bash is auto-completion, which saves typing every character of a command or filename. This article covers two ways to disable it…
Sometimes you need to find a specific line in a file, such as one identified by an error log. vi/vim can easily display or hide line numbers.
Use grep to display configuration lines that begin with particular characters. This helps inspect comments and review configuration settings.
This article may be useful to webmasters. It covers Linux commands for resizing JPEG, TIFF, PNM, GIF, and other Photo CD image formats. The procedure is straightforward…
RPM (Red Hat Package Management) packages are installation files for Red Hat Linux distributions. They are popular because software is easy to install and remove.
Edit $HOME/.bashrc, because Red Hat adds alias cp='cp -i'. Thus the -r option has no effect. Comment out alias cp='cp -i' with #, then log out and log back in…
The previous article covered whatis and --help. This article explains how to read command manuals with man and search related entries with man -k or apropos.
Many of you have probably used dd, but it does not show how far it has progressed. This article explains how to view dd's progress.
Some people may think help tools are unimportant, but I find them essential when I do not know what a command does, how to use it, or which parameters a file accepts.