Exam 1 Review for CEG 2350
Intro topics
- Shells
- Windows: powershell, cmd
- Linux / Mac: bash, sh, zsh
- SSH
- the command, its options, and structure of information
- private key files (location and permissions)
- public keys and the authorized_keys file
Files, directories, and OS structure
- Filesystem structure in Linux, Mac, and Windows
- Files vs directories
- Commands: ls, cp, mkdir, rmdir, vim, mv, rm, cd, cat, touch, head/tail, less/more, ln
- Importance of names and extensions (file)
- Ownership & sharing
- rwx permissions in Linux
- user vs. group vs. other
- creating users & groups (and naming rules)
- chmod, chown, chgrp, adduser, deluser
- sudo & the root user
Scripting
- Environment variables
- Aliases & customizations (.bashrc, .profile)
- Commands: diff, find, file, wc, sort, uniq, whereis, which
-
IO streams (standard input, output (1) and error (2)) and redirection (<, >, », |
, tee) |
- executing scripts
- within current bash shell (source (or
.
)
- by specifying interpreter (bash)
- by specifying the intepreter with
#!
(./
)
- by name from any location (adding path to PATH)
- Scripting languages: bash
- variables
- reading input
- printf vs echo
- arguments
- conditionals (
test
)
- if
- for
- while
- case
- Regular expressions
- grep (search)
Git (version control)
- Version control as a concept
- Steps to clone with
ssh
for authentication
- Basic commands:
- clone
- add
- commit
- push
- pull
- status