Raspberry Pi Basic Commands

Ini adalah senarai beberapa command asas untuk terminal Raspberry Pi. Bagi command asas Linux boleh rujuk Linux Basic Commands.

Synchronizes the list of packages on your system to the list in the repositories. Use it before installing new packages to make sure you are installing the latest version. sudo apt-get update
Upgrades all of the software packages you have installed. sudo apt-get upgrade
Opens the configuration settings menu. sudo raspi-config
Check OS version getconf LONG_BIT
List the contents of the current directory. ls
Install a package for which you already know the name. sudo apt-get install [desired application name]
Remove software from your system but leaves behind files that are somehow related to the software. sudo apt-get remove [desired application name]
To do an I2C scan i2cdetect -y 1
Opens the python file in the Linux text editor Nano. sudo nano [file name].py
To run python programs directly from the prompt. python [file name].py
To testing take picture. raspistill -o /home/pi/image.jpg
To scheduling task with cron. sudo crontab -e
Export Database mysqldump -u username -p database_name > data-dump.sql
Import Database mysql -u username -p new_database < data-dump.sql
To reboot immediately. sudo reboot now
To shutdown immediately. sudo shutdown now

Rujukan lain:

Leave a Reply

Your email address will not be published. Required fields are marked *