| /l3/users/My-Debian-Work/adm.prombez/ol14 :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
|
$./who1
1344693553
reboot ~ 1344693553
runlevel ~ 1344693553
1344693683
LOGIN tty6 1344693683
LOGIN tty4 1344693683
LOGIN tty2 1344693683
LOGIN tty5 1344693683
LOGIN tty3 1344693683
LOGIN tty1 1344693683
ol14 tty7 1344826101 :0
ol14 pts/0 1344844891 :0.0
ol14 pts/2 1344827648 :0.0
ol14 pts/4 1344829989 :0.0
ol14 pts/6 1344830680 :0.0
ol14 pts/10 1344831878 :0.0
ol14 pts/12 1344831884 :0.0
ol14 pts/14 1344834060 :0.0
|
|
$cd ~/C/who2
|
|
$gcc -o who1 who1.c
who1.c: In function ‘show_info’: who1.c:36: error: ‘utbofp’ undeclared (first use in this function) who1.c:36: error: (Each undeclared identifier is reported only once who1.c:36: error: for each function it appears in.) |
|
$gcc -o who1 who1.c
|
|
$./who1
ol14 tty7 1344826101 :0 ol14 pts/0 1344844891 :0.0 ol14 pts/2 1344827648 :0.0 ol14 pts/4 1344829989 :0.0 ol14 pts/6 1344830680 :0.0 ol14 pts/10 1344831878 :0.0 ol14 pts/12 1344831884 :0.0 ol14 pts/14 1344834060 :0.0 |
|
$gcc -o who1 who1.c
who1.c:35: warning: conflicting types for ‘show_info’ who1.c:19: note: previous declaration of ‘show_info’ was here |
|
$man -k time |grep transform
asctime (3) - transform date and time to broken-down time or ASCII asctime_r (3) - transform date and time to broken-down time or ASCII ctime (3) - transform date and time to broken-down time or ASCII ctime_r (3) - transform date and time to broken-down time or ASCII gmtime (3) - transform date and time to broken-down time or ASCII gmtime_r (3) - transform date and time to broken-down time or ASCII localtime (3) - transform date and time to broken-down time or ASCII localtime_r (3) - transform date and time to broken-down time or ASCII mktime (3) - transform date and time to broken-down time or ASCII |
|
$man 3 ctime
|
|
$./who1
ol14 tty7 1344826101 :0 ol14 pts/0 1344844891 :0.0 ol14 pts/2 1344827648 :0.0 ol14 pts/4 1344829989 :0.0 ol14 pts/6 1344830680 :0.0 ol14 pts/10 1344831878 :0.0 ol14 pts/12 1344831884 :0.0 ol14 pts/14 1344834060 :0.0 |
|
$gcc -o who1 who1.c
who1.c: In function ‘showtime’: who1.c:51: error: parameter name omitted who1.c:54: error: ‘timeval’ undeclared (first use in this function) who1.c:54: error: (Each undeclared identifier is reported only once who1.c:54: error: for each function it appears in.) |
|
$gcc -o who1 who1.c
|
|
$gcc -o who1 who1.c
who1.c: In function ‘show_info’: who1.c:47: error: ‘upbufp’ undeclared (first use in this function) who1.c:47: error: (Each undeclared identifier is reported only once who1.c:47: error: for each function it appears in.) |
|
$gcc -o who1 who1.c
|
|
$./who1
ol14 tty7 1344826101 :0 ol14 pts/0 1344844891 :0.0 ol14 pts/2 1344827648 :0.0 ol14 pts/4 1344829989 :0.0 ol14 pts/6 1344830680 :0.0 ol14 pts/10 1344831878 :0.0 ol14 pts/12 1344831884 :0.0 ol14 pts/14 1344834060 :0.0 |
|
$gcc -o who1 who1.c
|
|
$./who1
ol14 tty7 Aug 13 08:48:0 ol14 pts/0 Aug 13 14:01:0.0 ol14 pts/2 Aug 13 09:14:0.0 ol14 pts/4 Aug 13 09:53:0.0 ol14 pts/6 Aug 13 10:04:0.0 ol14 pts/10 Aug 13 10:24:0.0 ol14 pts/12 Aug 13 10:24:0.0 ol14 pts/14 Aug 13 11:01:0.0 |
|
$./who1
ol14 tty7 Aug 13 08:48:0 ol14 pts/0 Aug 13 14:01:0.0 ol14 pts/2 Aug 13 09:14:0.0 ol14 pts/4 Aug 13 09:53:0.0 ol14 pts/6 Aug 13 10:04:0.0 ol14 pts/10 Aug 13 10:24:0.0 ol14 pts/12 Aug 13 10:24:0.0 ol14 pts/14 Aug 13 11:01:0.0 root pts/17 Aug 13 14:40:0.0 |
|
$cd ~/C/cp
|
|
$gcc -o cp1 cp.c
|
|
$./cp1
|
|
$./cp1
|
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:15: warning: comparison between pointer and integer |
|
$gcc -o cp1 cp.c
|
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:21: warning: assignment makes integer from pointer without a cast |
|
$gcc -o cp1 cp.c
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
Ошибка сегментирования |
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
Ошибка сегментирования |
|
$./cp1 www
Ошибка сегментирования |
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:17: error: array size missing in ‘copyfile’ cp.c:18: error: array size missing in ‘tocopyfile’ cp.c:21: error: incompatible types when assigning to type ‘char[1]’ from type ‘char’ cp.c:22: error: incompatible types when assigning to type ‘char[1]’ from type ‘char’ cp.c:24: error: ‘copyfile1’ undeclared (first use in this function) cp.c:24: error: (Each undeclared identifier is reported only once cp.c:24: error: for each function it appears in.) |
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:17: error: array size missing in ‘copyfile’ cp.c:18: error: array size missing in ‘tocopyfile’ |
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:24: error: ‘copyfile1’ undeclared (first use in this function) cp.c:24: error: (Each undeclared identifier is reported only once cp.c:24: error: for each function it appears in.) |
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$ping 192.168.0.28
PING 192.168.0.28 (192.168.0.28) 56(84) bytes of data. From 192.168.0.127 icmp_seq=9 Destination Host Unreachable From 192.168.0.127 icmp_seq=10 Destination Host Unreachable From 192.168.0.127 icmp_seq=11 Destination Host Unreachable From 192.168.0.127 icmp_seq=12 Destination Host Unreachable From 192.168.0.127 icmp_seq=13 Destination Host Unreachable From 192.168.0.127 icmp_seq=14 Destination Host Unreachable From 192.168.0.127 icmp_seq=15 Destination Host Unreachable From 192.168.0.127 icmp_seq=16 Destination Host Unreachable From 192.168.0.127 icmp_seq=17 Destination Host Unreachable ^Z [1]+ Stopped ping 192.168.0.28 |
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
Ошибка сегментирования |
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$gcc -o cp1 cp.c
|
|
$./cp1 www rrr
|
|
$./cp1
|
|
$ls
cp1 cp.c |
|
$gcc -o cp1 cp.c
|
|
$./cp1
|
|
$./cp1 www rrr
|
|
$cd ~/C/K&R/Helloworld
[1] 18791 bash: cd: /home/ol14/C/K: Нет такого файла или каталога bash: R/Helloworld: Нет такого файла или каталога [1]+ Exit 1 cd ~/C/K |
|
$cd ~/C/
|
|
$ls
1.deb C.zip l1 more more01.zip RT-N13U.RB_9.2.5.4.trx who2 cp K&R Makefile more01 more02 who1 |
|
$cd ~/C/K&R/
[1] 18881 bash: R/: Нет такого файла или каталога bash: cd: /home/ol14/C/K: Нет такого файла или каталога [1]+ Exit 1 cd ~/C/K |
|
$cd ~/C/KandR/Helloworld
|
|
$ls
hello.c |
|
$gcc -o hello hello.c
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status |
|
$gcc -o hello hello.c
|
|
$./hello
|
|
$cd ~/C/KandR/Helloworld
|
|
$gcc -o hello hello.c
|
|
$./hello
|