Absolute path - (see root ( / ) first!) - where an object (file or folder) exists on a filesystem starting from the very top level folder of any server: root aka '/'.
e.g. '/home/username/folder/file.txt' rather than just 'file.txt'
alias - shortcut for something, typically
Argument - (see command first!) - the 'target,' 'object,' or 'subject' of a command if specified. The nature of an argument depends on the nature of the command.
e.g. the command "ls" lists contents of the folder you are working in by default, but can be run as "ls /homefolder" without being in /homefolder to show you the contents.
in the example above: argument = /homefolder
see also: option, command, link: command glossary
command - an instruction given to a system via the CLI to carry out a desired task, whether that task is retrieving information, modifying / moving / removing information, or starting a program, among other tasks. Some commands require special privileges or access rights in order to run them.
command line interface ("CLI") - the method of utilizing a server or other computing system with explicit instructions and less visual feedback than a typical desktop graphical experience. Allows for robust and programmatic functions of a computer / server.
directory - folder, destination, source, a thing that holds things. (see also: subdirectory)
escape character [ \ ] - AKA backslash, found above enter or return. Useful even outside of the command line, an escape character prevents a system or program from treating the character immediately following it as a functional character.
Consider how commands with arguments and options have a space in between each element (cd -l /data for example).
If we have a folder or file name with a space in it, we need to use an escape character before the space to make sure the system knows we are referring to that, rather than just the first word alone.
e.g.: We want to go to a directory located at /unix101/My Files/escape/ but don't want the system to try to cd to /unix101/My/ which doesn't exist. We would write the command as:
cd /unix101/My\ Files/escape
file - an object that contains information in the form of bits and bytes, but not in the way a directory does. Think of a text file, which has text inside of it, or an image file.
filesystem - a hierarchy of directories (folders) and files that exist in them. Filesystems can be formatted differently, which is important for compatibility purposes. For example, you cannot run an .exe file in Unix or MacOS.
group - collection of users on a Unix system that may grant them default access to certain things. Used for controlling who can or cannot read / write / execute specific files or folders. A user can be a part of more than one group.
users also have what's called a 'primary group' they belong to, e.g. staff which leaves its mark on new things they create on a system.
however, if my primary group = 'staff' and I belong to a secondary group = 'students' then I can browse the same files and folders as the other members of 'students' wherever the group flag of an object is 'students' and the group bit's access allows me either read, write or execute permission.
GUI - often pronounced 'gooey' this acronym stands for Graphical User Interface and means things with clickable buttons, images, etc. An example of a GUI is RStudio.
Host - any singular computing system relative to a network of other systems, whether it is a server or a workstation.
Object - file or folder that exists in a filesystem. Anything that contains data or represents something that might contain data.
Permissions - (AKA access control list or ACL) the list of rules that a given object must adhere to when a user or program performs operations upon it. Permissions can be viewed using ls -l <object> where object = target file or folder.
Disclaimer: understanding permissions is a goal of the presentation. If you aren't clear on these, please ask!
r = read; w = write [modify]; x = execute [run if a file, enter if a directory]
When displaying permissions of something, you will notice some dashes and specific letters mixed in.
Suppose an 'ls -lhp' shows us this [real 28 year old file on a DS server]:
-rwxrw-r-- 1 root staff 4.8K Feb 12 1997 README.txt
drwxr-xr-x 4 root staff 4 Sep 17 2008 share/
We can ignore everything from "1" and to the right of that for now which is just how many times the item is linked to on the system.
Note the very first character of each line above. The file has a '-' first, while the directory has a 'd' first. 'd' means something is a directory, just another way to indicate it than the trailing slash.
After that, we notice 9 different characters that are any of: [r/w/x/-]
Only the '-' can exist in any position; the [r/w/x] are always sequential. The reason it repeats is to define privileges granted to the owner/user (root), the group ('staff'), and everyone else not identified with the other two.
The most permissive an object can be is to have its permissions read as rwxrwxrwx. This means literally everyone can read/write/execute it as long as they can access the location of that object.
See command glossary and find chmod for how to modify permissions.
Program - software existing on a server executed by a user either automatically or manually via the command line. In Unix, tends to be highly specialized and purpose-built.
Programmatic - (adjective) Describes a process as being structured logically to either run itself or decrease the manual effort needed to perform a task.
Root ( / ) - The top level of a Unix file system, identifiably a "leading forward slash" when referring to an object's precise location (see: absolute path). The top-level of all top-level folders.
Script - a program that can be written concisely to execute a few commands in a desired sequence, or based on specific conditions, with or without user input. Can be built from a number of different scripting languages; e.g. python (.py) / bash (.sh) / perl (.pl)
Server - powerful computer with specialized hardware which exists in a data center with other servers. Allows multiple users to access it at the same time from their workstations (see workstation definition below).
shell - command line interface window on your workstation that is ready for user input. Can also refer to your user environment and certain configurations. We are using bash.
special character(s) - AKA 'metacharacter'; part of what makes commands look a little scary or confusing, but once mastered are extremely useful as shortcuts and quality-of-life tools on the command line. Some good special characters to know and practice with as you play around:
$ = denotes a variable, whether global or
! = immediate previous thing of some sort.
* = everything (contextual, and relative, e.g. running 'rm *' from inside a given folder will delete everything in it, which is bad!)
SSH - (verb) "secure shell"; the act of connecting to a server remotely. Must have the username and password for a user account on the destination server in order for it to work.
(noun) Also refers to the "ssh protocol," or the bridge between us and a remote server.
Subdirectory - usually interchangable with folder, but specifically when referring to a folder that exists inside another folder when the higher level one is the subject of discussion.
e.g. /folder/subdirectory is a subdirectory of /folder
Unix - Powerful operating system (OS) architecture that serves as the basis for much of modern computing as it exists today. Combining many specialized tools, it has been built by numerous stubborn nerds to get things done in a desirable, customizable, and intelligent way since the 1970s onward.
Workstation - the computer someone uses that exists physically in front of them. Laptop, PC, MacBook, ThinkPad, etc. See also: host