Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr4206 :: New to GNU/Linux resources.

Sgoti talks about resources for new Linux users.

<< First, < Previous, , Latest >>

Thumbnail of Some Guy On The Internet
Hosted by Some Guy On The Internet on 2024-09-16 is flagged as Clean and is released under a CC-BY-SA license.
New to Linux, documentation. (Be the first).

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:28:21

general.

New to GNU/Linux resources.

Sgoti talks about resources for new Linux users.

  • Tags: New to Linux, documentation

The Linux Command Line

  • The book spells Vim wrong (joke).
    • nano ~/.bashrc should be vim ~/.bashrc.
  • groff + sed = "Log off and go to bed."

Bash man page.

  • Shell grammar.
    • This section describes the syntax of the various forms of shell commands.

DEFINITIONS.

The following definitions are used throughout the rest of this
document.
blank  A space or tab.
word   A sequence of characters considered as a single unit by
       the shell.  Also known as a token.
name   A word consisting only of alphanumeric characters and
       underscores, and beginning with an alphabetic character or
       an underscore.  Also referred to as an identifier.
metacharacter
       A character that, when unquoted, separates words.  One of
       the following:
       |  & ; ( ) < > space tab newline
control operator
       A token that performs a control function.  It is one of
       the following symbols:
       || & && ; ;; ;& ;;& ( ) | |& <newline>

Lists.

 A list is a sequence of one or more pipelines separated by one of
 the operators ;, &, &&, or ||, and optionally terminated by one
 of ;, &, or <newline>.

ARITHMETIC EVALUATION.

((expression))
   - +    unary minus and plus
   * / %  multiplication, division, remainder
   + -    addition, subtraction
   <= >= < >
          comparison
   == !=  equality and inequality
   &&     logical AND
   ||     logical OR

CONDITIONAL EXPRESSIONS.

[[ expression ]]
Return a status of 0 or 1 depending on the evaluation of the conditional expression.
-a file, True if file exists.
-d file, True if file exists and is a directory.
-f file, True if file exists and is a regular file.

PARAMETERS (Positional Parameters & Special Parameters).

A parameter is an entity that stores values.

EXPANSION.

race expansion, tilde expansion, parameter and variable
expansion, command substitution, arithmetic expansion, word
splitting, and pathname expansion.

JOB CONTROL.

Job control refers to the ability to selectively stop (suspend)
the execution of processes and continue (resume) their execution
at a later point.

Title: 'The Linux Command Line'
License: creativecommons: Attribution-NonCommercial-NoDerivs 3.0 Unported 'CC BY-NC-ND 3.0'
Source(s):
linuxcommand: 'The Linux Command Line: Fifth Internet Edition' by William Shotts.
archive: 'The Linux Command Line Fifth Internet Edition' by William Shotts.

Title: bash Linux manual page.
License: Bash is Copyright (C) 1989-2022 by the Free Software Foundation, Inc.
Source(s):
man7: bash(1) — Linux manual page
man7: Linux manual pages: alphabetic list of all pages.


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?