Tail to read the end of the file $ tail -f /var/log/syslog Mar 18 15:40:50 raspberrypi dbus-daemon: Successfully activated service '2VolumeMonitor' Mar 18 15:40:47 raspberrypi systemd: Starting Virtual filesystem service - disk device monitor. Mar 18 15:40:47 raspberrypi dbus-daemon: Activating via systemd: service name='2VolumeMonitor' unit='rvice' requested by ':1.7' (uid=1000 pid=750 comm="pcmanfm -desktop -profile LXDE-pi ") Head to read the header of a file $ head -n 10 /var/log/syslog Mar 18 15:40:45 raspberrypi systemd: Started Daily man-db regeneration. Mar 18 15:40:45 raspberrypi systemd: rvice: Succeeded. Mar 18 15:40:37 raspberrypi systemd: rvice: Succeeded. Mar 18 15:40:34 raspberrypi systemd: Started Rotate log files. Mar 18 15:40:34 raspberrypi systemd: rvice: Succeeded. Mar 18 15:40:34 raspberrypi rsyslogd: rsyslogd was HUPed Mar 18 15:40:32 raspberrypi rsyslogd: rsyslogd was HUPed Rm -R to delete a folder and all its contents To read a fileĬat to display the whole file $ cat /var/log/syslog Reset_usb.py rpi-arduino-i2c.py rpi-arduino-serial.py rpi-pca9685.py Reset_usb.py rpi-arduino-i2c.py rpi-arduino-serial.py rpi-pca9685.py Work Reset_usb.py rpi-arduino-i2c.py rpi-arduino-serial.py $ mkdir $ ls #Permet de remonter deux dossiers plus haut dans l'arborescence To create directories #Permet de revenir dans le dossier précédentĬd Bureau/Work #Permet d'aller dans le dossier Work qui se trouve dans le dossier BureauĬd. There are different additions that modify the basic command: cd. The syntax of this command is as follows: we put “cd”, then a space and finally the name of the folder we want to go to. 144941_1824x984_scrot.png Documents Modèles TéléchargementsĬd allows to move in a folder : $ cd $ W Ls allows you to list all the folders and files contained in the directory where you are $ ls The pwd command allows to know in which directory you are $ pwd install.sh Linux commands to navigate through a folder La commande wget permet le téléchargement de fichier distant et peut aussi permettre de télécharger des packages à installerĮxample: to download the Arduino software cd /tmp In particular, downloading and installing OS updates sudo apt-get updateĪpt-get is also used to install or remove packages sudo apt-get installįinally, two commands to free up memory space sudo apt-get autoremovesudo apt-get clean The apt-get command allows you to install software and packages on the machine. To be used when the command returns the error “13 : Permission denied Généralement, utiliser avec une autre commande et le mot de passe de la session. Sudo est la commande qui permet de passer en super utilisateur ou administrateur. de fichiers Taille Utilisé Dispo Uti% Monté sur On Raspberry Pi, you can use the cat /proc/cpuinfo command $ cat /proc/cpuinfoįeatures : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32ĭf -h allows to know the free space on the memory card (very useful with raspberry pi) $ df -h You can use the -short option to display the summary (does not work with Raspberry Pi) Lshw is used to get the hardware configuration. Uname allows you to obtain system information (kernel name, kernel version, OS, etc.) $ $ uname -a In this tutorial, we will look at some essential Linux commands for using a Linux machine and a Raspberry Pi in particular.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |