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

Beispiele und "Screenshots" 12.10.2023

parent 6f6c69da
No related branches found
No related tags found
No related merge requests found
cassini/home/peter/bo/2023ws/dbs/20231012> mkdir test
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp -p ../h*.c .
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 8
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> rm h*.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012/test>
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp -p ../h*.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012/test> cd ..
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012>
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> cat hallo.c
#include <stdio.h>
int main (void)
{
printf ("Hallo, Welt!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 11:45 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp ../h*.c
cassini/home/peter/bo/2023ws/dbs/20231012/test> ls -l
insgesamt 0
cassini/home/peter/bo/2023ws/dbs/20231012/test> cd ..
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hallo.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hello.c
cassini/home/peter/bo/2023ws/dbs/20231012> cat hello.c
#include <stdio.h>
int main (void)
{
printf ("Hallo, Welt!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hallo.c
#include <stdio.h>
int main (void)
{
printf ("Hallo, Welt!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012>
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> cat hallo.c
#include <stdio.h>
int main (void)
{
printf ("Hallo, Welt!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp -i ../h*.c
cp: '../hello.c' überschreiben? n
cassini/home/peter/bo/2023ws/dbs/20231012/test>
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> echo cp -i ../h*.c
cp -i ../hallo.c ../hello.c
cassini/home/peter/bo/2023ws/dbs/20231012/test>
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l h*.c
-rw-r--r-- 1 peter peter 81 12. Okt 12:18 hallo.c
-rw-r--r-- 1 peter peter 82 12. Okt 12:20 hello.c
-rw-r--r-- 1 peter peter 86 12. Okt 12:26 hola.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> cat hallo.c
#include <stdio.h>
int main (void)
{
printf ("Hallo, Welt!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cat hola.c
#include <stdio.h>
int main (void)
{
printf ("¡Hola, el mundo!\n");
return 0;
}
cassini/home/peter/bo/2023ws/dbs/20231012> cd test
cassini/home/peter/bo/2023ws/dbs/20231012/test> cp ../h*.c
cp: Ziel '../hola.c': Ist kein Verzeichnis
cassini/home/peter/bo/2023ws/dbs/20231012/test> echo cp ../h*.c
cp ../hallo.c ../hello.c ../hola.c
cassini/home/peter/bo/2023ws/dbs/20231012/test>
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l test
insgesamt 0
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> cp hello.c test/hello-world.c
cassini/home/peter/bo/2023ws/dbs/20231012> ls -l test
insgesamt 4
-rw-r--r-- 1 peter peter 82 12. Okt 12:31 hello-world.c
cassini/home/peter/bo/2023ws/dbs/20231012>
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
int main (void) int main (void)
{ {
printf ("Hello, world!\n"); printf ("Hallo, Welt!\n");
return 0; return 0;
} }
#include <stdio.h>
int main (void)
{
printf ("¡Hola, el mundo!\n");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment