Extra Unix Shell Material: Glossary

Key Points

Advanced Shell Scripting
  • Shell scripts can be used to more complicated programming tasks

Working Remotely
  • SSH is a secure alternative to username/password authorization

  • SSH keys are generated in public/private pairs. Your public key can be shared with others. The private keys stays on your machine only.

  • The ‘ssh’ and ‘scp’ utilities are secure alternatives to logging into, and copying files to/from remote machine

Running Bash Scripts on an HPC Cluster
  • Clusters work like your computer, but with a scheduler

Permissions
  • Correct permissions are critical for the security of a system.

  • File permissions describe who and what can read, write, modify, and access a file.

  • Use ls -l to view the permissions for a specific file.

  • Use chmod to change permissions on a file or directory.

Directory structure
  • FIXME

Job control
  • When we talk of ‘job control’, we really mean ‘process control’

  • A running process can be stopped, paused, and/or made to run in the background

  • A process can be started so as to immediately run in the background

  • Paused or backgrounded processes can be brought back into the foreground

  • Process information can be inspected with ps

Aliases and bash customization
  • Aliases are used to create shortcuts or abbreviations

  • The .bashrc and .bash_profile files allow us to customize our bash environment.

  • The PS1 system variable can be changed to customize your bash prompt.

Shell Variables
  • FIXME

The Unix Shell
Transferring Files
  • FIXME

Glossary

remote login
FIXME
remote login server
FIXME
SSH daemon
FIXME
secure shell
FIXME
SSH key
FIXME
SSH protocol
FIXME
command
FIXME
user name
FIXME
user ID
FIXME
user group
FIXME
user group name
FIXME
user group ID
FIXME
access control lists
FIXME
search path
FIXME