• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

image

PLAY BUTTON

image

PLAY BUTTON

image

Progress

1/61

Click to flip

61 Cards in this Set

  • Front
  • Back
Operating System
The OS is the interface between users/applications and the hardware
What is the kernel?
The core of the operating system. It manages hardware and software of the machine.
How is the kernel executed?
It is located on the harddrive and then loaded into RAM at boot time
What file name can one find the kernel at?
Normally under a filename called "vmlinuz".
What is the shell & it's relationship with the kernel?
The command line interfacce. It transfers user input to the kernel.
Shell usage
There are multiple shells available, and each user may be running multiple shell sessions at once!
The default linux shell
BASH (Bourne Again Shell)
X Window System
Sometimes called "X", is a graphical user interface (GUI)... It is layered on top of the shell!!! Contains several components.
To go from CLI to X, you type the command...
startx
Desktop environments details
Gnome is most popular with Red Hat/Fedora and KDE is more popular with some of the other distributions
Window Managers - What are they and what kinds are there
Whenever an attempt to show a new window is made, this request is redirected to the window manager, which decides the initial position of the window. Metacity - used with Fedora and integrates well with Gnome, Compiz - for workspace spinning on a cube & Enlightenment - also used with Fedora, etc etc
About the TERMINAL
User interaction with the Linux KERNEL is done through a user interface, such as the terminal. The software channel allows users to *log on and gain access* to the user interface LOCALLY or across a NETWORK. Sometimes called "virtual terminals" or "virtual consoles" cause they aren't a physical object but defined thru software.
Older definition of terminal
In older comp systems a terminal was a keyboard and monitor combo (ghettofied)
Multiple terminals
... are allowed in linux, each with it's own shell. This allows multitasking at command line.
To change between separate terminals...
Use these key combos: ctrl+alt+f1 to logon to tty1 (the graphical interface), ctrl+alt+f2 for tty2, ctrl+alt+f3 for tty3, ctrl+alt+f4 for tty4, ctrl+alt+f5 for tty5
To login to the terminal, navigate to...
Applications>System Tools>Terminal
Command line window is also called the...
shell window!
PTS
Pseudo terminal slave... the terminal accessed by the GUI through system tools is a PTS instead of a tty terminal
Create a launcher for a file or folder
By right clicking
The very first command prompt you'll see
Depending on who you login as, it will be [root@cit150linux ~] # or [root@cit150linux ~] $ for regular user accounts and # for root. Also, "~" stands for the home directory.
"~"
Stands for home directory
[root@cit999gpblinux bin]#
root = login name, cit999gpblinux = the hostname and bin = the working directory
Components of a command on the command line
Command [Option(s)] [Argument(s)]
Command in a command
Indicates the name of the program to execute
Options in a command
Specific letters starting with "-" appearing after the command name. It alters the way the command works, is case sensitive.
Arguments in a command
Specifies a command's working parameters, and is case sensitive
POSIX Options
Some options in a command start with "--" instead of "-" and are usually composed of a whole word rather than just a specific letter
example of command components: ls -l /bin
ls = the command, -l = the option and /bin = the argument
ls -l
lists specified files in long format
clear
clears terminal screen
reset
resets terminal to use default terminal settings
finger
displays info on system users
who
displays currently logged in users
w
displays currently logged in users and their tasks
whoami
displays your login name
id
displays #s associated with your user acct name and group names, commonly referred to as User ID's (UIDS) and Group ID's (GIDS)
date
displays current date and time
cal
displays calendar for current month
exit
exits you out of your current shell
echo
displays info on screen
cat (what does it stand for?)
displays contents of text file
file
displays file type
Ctrl+C
is cancel
Shell Metacharacters
$ = shell variable, ~ special home directory variable, & = background command execution, ; = command termination, < << >> > = input/output redirection, | = command piping, * ? [] = shell wildcards, ' " / = command substitution, () {} = command grouping
The $ metacharacter refers to what? Whats an example?
It refers to the contents of a variable. For example, echo My Shell is $SHELL displays the contents of the SHELL variable...PS: echo My Shell is SHELL would not work without the $
Weak quotes and strong quotes
"" are weak quotes, and '' are strong quotes. For example, if you want to display on the screen "You won 100.00!" you would type in .. echo 'You won $100.00!'
One character quote
\ is like a strong quote but for one character
` means the run command
For example, this command executes the whoami command and displays its results

ex: echo My account name is `whoami`
Getting command help
One may display help info with several commands... man (display help pages from manual), info (often easier to read descriptio of commands), and help (for all the commands that arent listed in man or info)
man
Type "man" followed by a command name, to exit type q
info
type info followed by a command name, to exit type q
help
type help followed by command name
Getting --help through the commands
MANY commands have a help option... for instance, you can get help with the command date by typing date --help
Manual page section
Pages from man. 1= commands that any user can execute, 2 = linux system calls, 3 = library routines, 4 = special device files, 5 = file formats, 6 = games, 7 = macro packages, 8 = commands only executable by root, 9 = linux kernel routines, n = new commands not categorized yet.
man -k
does keyword search of the manual pages. helpful for locating appropriate command. ex: man -k echo
man -a
Use to display all man pages about a command, for ex - type these sequentially:
man -k echo (search for info about echo)
man echo (display first page found)
man -a echo (display all qualifying man pages)
apropos
Same command as man -k.
If man or apropos don't work...
Execute command makewhatis (logged in as root) to index the man page database. Will take some time.
whatis
Command displays entries from the whatis index/database.
Navigating command history
May use up and down arrow keys to move through the command history in order to re-execute a previous command
Shutting down from Shell
poweroff (powers off), halt -p (powers off after halting the system), shutdown -h +4 (halts system in 4 mins), shutdown -h now (halts system immediately), shutdown -r now (reboots system immediately), shutdown -c (cancels a scheduled shut down), halt (halts system immediately), reboot (reboots your system immediately)