UnixTools: Difference between revisions

From
Jump to navigation Jump to search
No edit summary
Line 47: Line 47:


= Bash 1.1 =
= Bash 1.1 =
* starting a programm ($PATH, permissions)
* starting a process, to execute program ($PATH, permissions)
* terminating a command prematurely with ^C
* terminating a process prematurely with ^C
* $? - the return value of a command
* $? - the exit value of a process
* prog1 && prog2
* batch processing (simple shell scripts)
* running multiple programs (processes) at the same time
* running multiple processes at the same time
** &
** &
** ps
** ps
Line 58: Line 58:


= Bash 1.2 =
= Bash 1.2 =
* batch processing (simple shell scripts)
* Shell Variablen
* shell variables, substitution of shell variables
* $(date)
* $(date)
* exporting shell variables
* Shell Variablen exportieren
* $PATH
* $PATH
* $LANG
* $LANG
Line 68: Line 69:
[[UnixTools04|genauer]]
[[UnixTools04|genauer]]


= Bash 2.1 - Scripts =
= Bash 2 - Scripts =
* Shell Scripte
* << Umlenkung von stdin
* $1 .. Shell Variablen für Argumente
* $1 .. Shell Variablen für Argumente

= Bash 2.2 - Programming =
* prog1 && prog2
* for x in a b c
* for x in a b c
* while
* while
* if
* if
* << Umlenkung von stdin
[[UnixTools05|genauer]]
[[UnixTools05|genauer]]


= Working With Files 1 - basics =
= Working With Files 1 - basics =
* wget (oder curl)
* wget (or curl)
* md5checksum
* md5checksum
* sh1-checksum
* sh1-checksum

Revision as of 11:35, 13 December 2024

Unix Tools

by


Jens-Peter Redlich from Berlin/Germany (deutsche/english)

and

Iurii Medvedev from Bishkek/Kyrgistan (русский)


Access to the computer

  • login / logout
  • ssh - login at remote host
  • Who/Where am I? What is the name of this computer? What is my ID here? Who else is currently at this computer?

genauer

Basics

  • files, directories, working directory
  • path names, /ab/so/lute and re/la/tive, ~ , . and ..
  • basic commands: cat, touch, rm, mkdir, rmdir, mv
  • using wildcards to identify files
  • editing text
  • basic commands: more, wc, grep, tail, head, find
  • getting help
  • redirecting stdout, stdin
  • special characters (or blanks) in the shell's command line
  • a file's access rights: ls -l, chmod, chown, chgrp

genauer

File Formats (a few examples)

  • Markdown
  • Yaml
  • XML
  • HTML
  • csv
  • json

some Programming Languages

  • C
  • C++
  • Java
  • Python
  • bash script

genauer

Bash 1.1

  • starting a process, to execute program ($PATH, permissions)
  • terminating a process prematurely with ^C
  • $? - the exit value of a process
  • prog1 && prog2
  • running multiple processes at the same time
    • &
    • ps
    • kill
    • wait

Bash 1.2

  • batch processing (simple shell scripts)
  • shell variables, substitution of shell variables
  • $(date)
  • exporting shell variables
  • $PATH
  • $LANG
  • $$
  • alias (and .bashrc)
  • Indiuviduelle Konfiguration der Shell (.profile, .bashrc)

genauer

Bash 2 - Scripts

  • $1 .. Shell Variablen für Argumente
  • for x in a b c
  • while
  • if
  • << Umlenkung von stdin

genauer

Working With Files 1 - basics

  • wget (or curl)
  • md5checksum
  • sh1-checksum
  • diff
  • tar

genauer

Working with Files 2 - transformations

  • sed
  • awk


Working With Files 3 - version control

  • git
  • github

genauer

---

Administration Jobs - 1

  • software packet manager
    • apt-get
    • pip
    • conda
  • cronjob / systemd

Administration Jobs - 2

  • file system administration
    • du
    • df
    • mount, umount
    • format
    • hdd/sdd performance monitoring tools
  • rsync
  • dd
    • fsck
    • trim
  • backup solutions


Docker

  • docker
  • docker compose
  • kubernetes

genauer

Data Formats (in protocols)

  • IPv4 header
  • HTTP
  • Tools: Wireshark

genauer

Network Management

  • host IP address
  • network mask, gateway
  • routing table
  • Firewall
  • NAT
  • VPN
  • DNS
  • tools: ping, traceroute, iptables
  • tools: wireshark

genauer

Administration Jobs - 3

  • nginx
  • apache (web server)
  • mysql

Cloud Technologies

  • REST
  • Service Endpoint
  • Cloud Computing ressources
  • Cloud Storage

Continuous Integration / continuous development (CI/CD)

  • Jenkins

genauer

Programming

  • Python 3
  • Jupyter Notebook
  • JavaScript
  • MySQL
  • Java, C, C++
  • Rust
  • Go

Tools: Visual Studio Code (VSC)