Very useful Linux tips and tricks for the Linux desktop user.

Posted: January 18, 2017. At: 2:42 PM. This was 7 months ago. Post ID: 10201

How to make the Xterm font larger.

To make the Xterm font larger, hold the left Cntrl key down and right-click on the xterm window to bring up a menu that allows the user to select a larger font size.

Selecting a larger font size in Xterm with the menu.
Selecting a larger font size in Xterm with the menu.

Using the .inputrc file to control keybindings in xterm.

If you wish to control the key bindings for Backspace, Delete, Home & the End keys in Xterm then read on.

The ~/.inputrc file in your home directory controls this behavior, using the defines in this file you may control the key bindings and make using the BASH shell easier.

$if term=linux
 "\e[1~": beginning-of-line
 "\e[4~": end-of-line
 "\e[3~": delete-char
$else
 "\e[H": beginning-of-line
 "\e[F": end-of-line
 "\C-?": delete-char
$end

The TERM environment variable determines whether the Linux console or the Xterm terminal emulator is affected by this definition. If the Xterm does not use the Backspace key as backspace, then you may enter this into your ~/.bashrc file to configure this: stty erase ^H.

Enabling color ls output.

Using a simple alias, you may enable color directory listing output with ls. This directory listing also enables a human-readable listing of file-sizes with the -h option.

alias ls='ls -hula --color=auto'

The .dircolors file that resides in your home directory controls the colors that are used to represent various files displayed in the directory listing.

Viewing files with the command-line.

To view a text file and scroll through the text file easily, then the less command will help.

cat myfile.txt | less

Many different ways to switch to the root user in Linux with the command line.

http://securitronlinux.com/bejiitaswrath/many-different-ways-to-switch-to-the-root-user-in-linux-with-the-terminal/.

No comments have been made. Use this form to start the conversation :)

Leave a Reply