UnixTools02

From
Revision as of 10:46, 13 December 2024 by Jpr (talk | contribs)
Jump to navigation Jump to search

File Formats

Markdown (von wikimedia)

== Header name ==
=== Header name ===
italic text
bold text
* list item
# numbered list item


Yaml - Yet Another Markup Language

Example: docker config

services:
 nextcloud:
   image: nextcloud
   container_name: nextcloud
   restart: unless-stopped
   networks: 
     - cloud
   depends_on:
     - nextclouddb
     - redis
   ports:
     - 8081:80
   volumes:
     - ./html:/var/www/html
     - ./custom_apps:/var/www/html/custom_apps
     - ./config:/var/www/html/config
     - ./data:/var/www/html/data
   environment:
     - PUID=1000
 
 nextclouddb:
   image: mariadb
   container_name: nextcloud-db
   restart: unless-stopped
   command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
   networks: 
     - cloud
   volumes:
     - ./nextclouddb:/var/lib/mysql


XML - Extensible Markup Language

<?xml version="1.0"?>
<CAT>
  <NAME>Izzy</NAME>
  <BREED>Siamese</BREED>
  <AGE>6</AGE>
  <ALTERED>yes</ALTERED>
  <DECLAWED>no</DECLAWED>
  <LICENSE>Izz138bod</LICENSE>
  <OWNER>Colin Wilcox</OWNER>
</CAT>


HTML - Hyper Text Markup Language

<!DOCTYPE html>
<html>
<body>
some text
</body>
</html>


csv - Comma-Separated Values

Stunde,Montag,Dienstag,Mittwoch,Donnerstag,Freitag
1,Mathematik,Deutsch,Englisch,Erdkunde,Politik
2,Sport,Deutsch,Englisch,Sport,Geschichte
3,Sport,"Religion (ev., kath.)",Kunst,,Kunst


json - Java Script Object Notation

'{"name":"John", "age":30, "car":null}'


typical programming languages

  • C, C++
  • python
  • Java
  • JavaScript
  • bash (script)
  • SQL
    • e.g. .bashrc (bash script)
    • logfile /var/log/dmsg.log

Tools

  • unix program file
  • Editor with language support