More Commands and concepts Flashcards

1
Q

file

A

Tells you what kind of data a file contains

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Absolute pathname

A

The path from the root directory to the directory you want to get to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Relative pathname

A

The path from the working directory to the directory you want to get to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Working directory

A

The directory you’re currently in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Hierarchical directory structure

A

A directory system where there’s a root directory and many branches from it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Shell

A

A command interpreter that translates your commands to computer language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Bash

A

Bourne Again Shell- one example of a shell program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Terminal

A

A program that allows you to interact with the shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Pathname

A

Route you take in the hierarchical directory structure to get to the directory you want

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Symbolic link

A

A file that has a symbolic link points to a different file. When operations are carried out on a file with a symbolic link they’re really carried out on the file it points to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Wildcard

A

Used in pattern matching *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

*

A

Wildcard that pattern matches any characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

?

A

Wildcard that pattern matches any single character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

touch

A

Create an empty file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

type

A

Tells us the type of a command (there are 4 types)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Executable program

A

Complied binaries or things written in scripting language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Shell built ins

A

Command built into the shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Alias

A

A command you define that is built up from other built in commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Shell function

A

A shell script that the command line can run

20
Q

help

A

Tells you what a shell built in does

21
Q

Standard output

A

Program shell uses to direct the output of commands- default is to print to the command line

22
Q

Standard input

A

Facility commands accept inputs from- usually it takes input from the keyboard

23
Q

I/O redirection

A

Input and output redirection

24
Q

Filters

A

Take standard input and perform an operation on it before sending it to standard output

25
sort
Sorts standard input
26
pr
Takes text and splits it into pages with page breaks, headers and footers. Prepares a file to be printed.
27
Expansion
When you type something into the terminal and run it bash performs processes on that input before the commend is executed. This is called expansion.
28
$((expression))$
Arithmetic expansion- allows the command line to do integer arithmetic
29
Preamble -{ a,b,c,...}- postscript
Brace expansion. Creates a list with a, b, c, .. preceded by preamble and proceeded by postscript
30
Parameter expansion
Built in variables in shell
31
$(com)
Command substitution. Allows the output of the command com to be used by another command.
32
Double quoting
Removes the meaning of special characters except $, \, ‘. Also suppresses all but parameter, arithmetic and command expansion
33
delimiter
Sequence of characters that specify boundary between independent regions of text and data
34
Single quotes
Suppress all expansions and special characters
35
Escape character
\ removes the meaning of a special character and can be used to allow commands to go over several lines
36
Package repositories
A collection of packages you might want to download to your computer all stored in one location- contrast to Windows where you go to individual sites for individual programs
37
APT
Advanced package tool, tools used to manage the packaging on your system
38
apt update
Updates the package repository for your system, needs to be run as the super user
39
apt upgrade
upgrades your system to fix bugs, security etc. Needs to be run as the super user
40
apt install
Install a program
41
apt remove
Remove a package
42
apt search < >
Search for package in the <>
43
apt search cats
Find packages with term cats in the package or description
44
apt info
Find information about a package
45
apt autoremove or apt remove package - - auto-remove
Remove the packages that were auto installed when the package was installed
46
Load a package
package name & opens package and keeps the terminal active