Posted: . At: 12:19 PM. This was 11 years ago. Post ID: 4758
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

BASH shell tips and tricks. Some useful tips for using the Linux CLI.

To get simple information about a Linux command, or to refresh your memory, use the info pages to learn more about the commands.

Type info ls for example to get information about the ls command.

Type help and then a bash scripting command like ‘echo’, and the help will be displayed.

4.4 Fri Oct 25 jason@Yog-Sothoth 0: $ help echo
echo: echo [-neE] [arg ...]
    Write arguments to the standard output.
 
    Display the ARGs, separated by a single space character and followed by a
    newline, on the standard output.
 
    Options:
      -n	do not append a newline
      -e	enable interpretation of the following backslash escapes
      -E	explicitly suppress interpretation of backslash escapes
 
    `echo' interprets the following backslash-escaped characters:
      \a	alert (bell)
      \b	backspace
      \c	suppress further output
      \e	escape character
      \E	escape character
      \f	form feed
      \n	new line
      \r	carriage return
      \t	horizontal tab
      \v	vertical tab
      \\	backslash
      \0nnn	the character whose ASCII code is NNN (octal).  NNN can be
    		0 to 3 octal digits
      \xHH	the eight-bit character whose value is HH (hexadecimal).  HH
    		can be one or two hex digits
 
    Exit Status:
    Returns success unless a write error occurs.

A Linux system also has man pages, these contain much useful information about various commands, and are very useful for reference purposes.

Type man fdisk for example to get information about the fdisk utility for Linux.

The man intro command will give a fresh user of Linux a nice introduction to the Linux shell and really help out with the transition to the bash shell from Windows.

Find various documents on Linux here, these will really help users learn the Linux shell and the desktop.

Various Linux documents and E-Books.

http://www.securitronlinux.com/lc.

This document is very useful for learning Linux.

https://securitronlinux.com/nix-pdfs/#toc-the-linux-pocketbook.

Linux tutorials.

https://securitronlinux.com/nix-pdfs/#toc-linux-tutorials.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.