RASPi3 — 1. cvicenie s LINUX-om
2 decembra, 2016 | Posted by in Hlavná stránka****************************** ****************************** ****************************** ***
0. putty.exe
IP: 192.168.10.99
login: pi
Heslo: raspberry
****************************** ****************************** ****************************** ***
1. HOME
Napiste prikaz: ls
Vypis bude:
pi@raspberrypi:~ $ ls
Desktop Downloads Pictures python_games Videos
Documents Music Public Templates
****************************** ****************************** ****************************** ***
2. Priklad prechodu do a z adresaru
pi@raspberrypi:~ $ cd ~/Desktop/
pi@raspberrypi:~/Desktop $ ls
pi@raspberrypi:~/Desktop $ cd ..
pi@raspberrypi:~ $ ls
Desktop Downloads Pictures python_games Videos
Documents Music Public Templates
pi@raspberrypi:~ $
****************************** ****************************** ****************************** ***
3. Priklad prechodu do a z adresaru
pi@raspberrypi:~ $ cd ~/python_games
pi@raspberrypi:~/python_games $ ls
4row_arrow.png gem4.png pentomino.py
4row_black.png gem5.png pinkgirl.png
4row_board.png gem6.png Plain_Block.png
4row_computerwinner.png gem7.png princess.png
4row_humanwinner.png gemgem.py RedSelector.png
4row_red.png grass1.png Rock.png
4row_tie.png grass2.png Selector.png
……….
pi@raspberrypi:~/python_games $
pi@raspberrypi:~/python_games $ cd ..
pi@raspberrypi:~ $ ls
Desktop Downloads Pictures python_games Videos
Documents Music Public Templates
pi@raspberrypi:~ $
****************************** ****************************** ****************************** ***
4. LINUX USAGE, URL: https://www.raspberrypi.org/ documentation/linux/usage/ README.md
— a ideme nizssie
LINUX COMMANDS, URL: https://www.raspberrypi.org/ documentation/linux/usage/ commands.md
****************************** ****************************** ****************************** ***
4.1 Command: ls
pi@raspberrypi:~ $ ls -l
total 36
drwxr-xr-x 2 pi pi 4096 Sep 23 03:52 Desktop
drwxr-xr-x 6 pi pi 4096 Nov 4 14:39 Documents
drwxr-xr-x 2 pi pi 4096 Sep 23 04:03 Downloads
drwxr-xr-x 2 pi pi 4096 Sep 23 04:03 Music
drwxr-xr-x 2 pi pi 4096 Sep 23 04:03 Pictures
drwxr-xr-x 2 pi pi 4096 Sep 23 04:03 Public
drwxr-xr-x 2 pi pi 4096 Sep 23 03:52 python_games
drwxr-xr-x 2 pi pi 4096 Sep 23 04:03 Templates
drwxr-xr-x 2 pi pi 4096 Sep 23 04:03 Videos
pi@raspberrypi:~ $ ls -a
. .config .gtkrc-2.0 Public .Wolfram Research
.. .dbus .idlerc python_games .Xauthority
.asoundrc Desktop .local Templates .xsession-errors
.bash_history Documents Music .themes .xsession-errors.old
.bash_logout Downloads Pictures Videos
.bashrc .gconf .pki .viminfo
.cache .gstreamer-0.10 .profile .WolframEngine
pi@raspberrypi:~ $
****************************** ****************************** ****************************** ***
4.2 Command: cd
i@raspberrypi:~ $ ls
Desktop Documents Downloads Music Pictures Public python_games Templates Videos
pi@raspberrypi:~ $ cd ~/python_games
pi@raspberrypi:~/python_games $ ls -a
. gem3.png pentomino.py
.. gem4.png pinkgirl.png
4row_arrow.png gem5.png Plain_Block.png
4row_black.png gem6.png princess.png
4row_board.png gem7.png RedSelector.png
………..
pi@raspberrypi:~/python_games $ ls -l
total 1800
-rw-rw-r– 1 pi pi 9731 Jan 27 2015 4row_arrow.png
-rw-rw-r– 1 pi pi 7463 Jan 27 2015 4row_black.png
-rw-rw-r– 1 pi pi 8666 Jan 27 2015 4row_board.png
-rw-rw-r– 1 pi pi 18933 Jan 27 2015 4row_computerwinner.png
-rw-rw-r– 1 pi pi 25412 Jan 27 2015 4row_humanwinner.png
-rw-rw-r– 1 pi pi 8562 Jan 27 2015 4row_red.png
………..
****************************** ****************************** ****************************** ***
teoria:
WHOLE LINUX FILE SYSTEM URL: https://www.raspberrypi.org/ documentation/linux/ filesystem/whole-filesystem.md
FilesystemHierarchyStandard URL: https://wiki.debian.org/ FilesystemHierarchyStandard
****************************** ****************************** ****************************** ***
kniha Vychodil str.19 : prikaz w
pi@raspberrypi:~ $ w
18:04:12 up 57 min, 3 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
pi :0 :0 16:17 ?xdm? 16.39s 0.21s /usr/bin/lxsession -s
pi tty1 16:17 1:47m 0.40s 0.37s -bash
pi pts/0 192.168.10.50 17:09 1.00s 0.51s 0.02s w
****************************** ****************************** ****************************** ***
— nastavenie siete
pi@raspberrypi:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:8e:c6:49
inet addr:192.168.10.99 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::2f0:e839:124b:d6ed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1126 errors:0 dropped:0 overruns:0 frame:0
TX packets:368 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:127928 (124.9 KiB) TX bytes:57569 (56.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:208 errors:0 dropped:0 overruns:0 frame:0
TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:17296 (16.8 KiB) TX bytes:17296 (16.8 KiB)
wlan0 Link encap:Ethernet HWaddr b8:27:eb:db:93:1c
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9057:90d3:3e14:7060/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5954 errors:0 dropped:5286 overruns:0 frame:0
TX packets:438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1114556 (1.0 MiB) TX bytes:51503 (50.2 KiB)
****************************** ****************************** ****************************** ***
ROOT USER/SUDO URL: https://www.raspberrypi.org/ documentation/linux/usage/ root.md
****************************** ****************************** ****************************** ***
You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.