Skip to content
Snippets Groups Projects
Commit 52f2263d authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Weiter Beispiele und "Screenshots" 12.10.2023

parent 53854a52
No related branches found
Tags
No related merge requests found
cassini/home/peter/bo/2023ws/dbs/20231012> cat > privet.c
#include <stdio.h>
int main (void)
{
printf ("Привет, мир!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat privet.c
#include <stdio.h>
int main (void)
{
printf ("Привет, мир!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> gcc -Wall -O privet.c -o privet
cassini/home/peter/bo/2023ws/dbs/20231012> ./privet
Привет, мир!
cassini/home/peter/bo/2023ws/dbs/20231012>
cassini/home/peter/bo/2023ws/dbs/20231012> chmod -r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
--w------- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
cat: hello.c: Keine Berechtigung
cassini/home/peter/bo/2023ws/dbs/20231012> chmod +r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rw-r--r-- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod -r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod u+r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rw------- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>
cassini/home/peter/bo/2023ws/dbs/20231012> chmod 640 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rw-r----- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod 750 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rwxr-x--- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
obase=13
ibase=13
6 * 9
42
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rwxr-x--- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod uo+w g-x u-r hello.c
chmod: Zugriff auf 'g-x' nicht möglich: Datei oder Verzeichnis nicht gefunden
chmod: Zugriff auf 'u-r' nicht möglich: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2023ws/dbs/20231012> chmod uo+w hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod g-x hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod u-r hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
--wxr---w- 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> chmod 775 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l hello.c
-rwxrwxr-x 1 peter peter 82 12. Okt 12:20 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> ./hello.c
./hello.c: Zeile 3: Syntaxfehler beim unerwarteten Symbol »(«
./hello.c: Zeile 3: `int main (void)'
cassini/home/peter/bo/2023ws/dbs/20231012> # Dies ist ein Kommentar. ;-)
cassini/home/peter/bo/2023ws/dbs/20231012>
No preview for this file type
......@@ -939,6 +939,8 @@
\end{frame}
\iffalse
\begin{frame}[fragile]
\showsubsection
......@@ -1271,6 +1273,8 @@
\end{frame}
\fi
\nosectionnonumber{\inserttitle}
\begin{frame}
......@@ -1290,7 +1294,9 @@
\item[2.1] Grundkonzepte
\color{medgreen}
\item[2.2] Die Kommandozeile: Grundlagen
\color{orange}
\item[2.3] Dateisysteme
\color{red}
\item[2.4] Ein- und Ausgabeströme
\item[2.5] Pipes
\item[2.6] Verzweigungen und Schleifen
......
File mode changed from 100644 to 100755
#include <stdio.h>
int main (void)
{
printf ("Привет, мир!\n");
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Привiт, свiте!\n");
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment