User Tools

Site Tools


skill-tree:use:1:1:b

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
skill-tree:use:1:1:b [2020/07/19 21:16] lucyskill-tree:use:1:1:b [2025/04/16 18:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
-# USE1.1-B Command Line Interface +# USE1.1 Command Line Interface 
-# Background+
 HPC systems are usually accessed via a Linux-based Command Line Interface (CLI) that is provided by a shell. HPC systems are usually accessed via a Linux-based Command Line Interface (CLI) that is provided by a shell.
  
 At its core, a shell is simply a convenient tool that you can use to execute commands on a Linux computer. At its core, a shell is simply a convenient tool that you can use to execute commands on a Linux computer.
 The shell provides a textual interface allowing to interact with the operating system and performing all possible operations, i.e., accessing and manipulating files, and running programs. The shell provides a textual interface allowing to interact with the operating system and performing all possible operations, i.e., accessing and manipulating files, and running programs.
 +However, there are various misconceptions that new users typically face when handling a shell such as the Bash.
 +Particularly, dealing with control characters and the format expected when executing programs with arguments can be error-prone.
 +
 +Part of this skill is the general principles of the interaction with a shell, to execute and to stop programs.
  
-Part of this module is the general principles of the interaction with a shell. They are illustrated on the widely available bash shell.+## Requirements
  
-# Aim 
-  * To describe the key principles of a shell. 
-  * To execute basic programs and manipulate their input/output. 
  
 +## Learning Outcomes
  
-# Outcomes +* Utilize the bash shell to execute individual programs with arguments. 
-  * Utilize the bash shell to execute individual programs with arguments. +* Describe the meaning of the exit code of a program. 
-  * Describe the meaning of the exit code of a program. +* Run multiple programs after another depending on the exit code ;, &&, ||. 
-  * Run multiple programs after another depending on the exit code ;, &&, ||. +* List the set of basic programs and their tasks:
-  * List the set of basic programs and their tasks:+
     * pwd     * pwd
     * whoami     * whoami
Line 25: Line 26:
     * clear     * clear
     * man     * man
 +    * vi, vim, emacs, nano
     * exit     * exit
-  * Utilize the available help of a program (--help argument and the man pages). +* Utilize the available help of a program (--help argument and the man pages). 
-  * Interrupt or abort a program execution:+* Interrupt or abort a program execution:
     * CTRL-C     * CTRL-C
     * CTRL-Z     * CTRL-Z
     * using kill -9     * using kill -9
-  * Use the shell history to search and execute previously executed commands. +* Use the shell history to search and execute previously executed commands. 
-  * Identify potential special characters that must be handled with care. +* Set and print shell variables. 
-  * Utilize escaping to ensure correct handling of arguments. +* Print all currently set variables 
-  * Understand wildcard characters to select a group of files/directories:+* Identify potential special characters that must be handled with care. 
 +    * List strings that could refer to files/directories 
 +* Utilize escaping to ensure correct handling of arguments. 
 +* Understand wildcard characters to select a group of files/directories:
     * *     * *
-    * [,-] +    * ? 
-  Use text editors.+    * [-,
 +How to close popular command line text editors with/or without saving changes: 
 +    * nano 
 +    * vi 
 +    * emacs
  
-# Subskills 
  
skill-tree/use/1/1/b.1595186205.txt.gz · Last modified: 2020/07/19 21:16 by lucy