42 of the Most Useful Raspberry Pi Commands
Sometimes it’s hard to keep track of all the Raspberry Pi commands you use, so I created a list of some of the most useful and important ones that will make using Linux on the Raspberry Pi a lot easier. But first a quick note about user privileges…
There are two user “modes” you can work with in Linux. One is a user mode with basic access privileges, and the other is a mode with administrator access privileges (AKA super user, or root). Some tasks can’t be performed with basic privileges, so you’ll need to enter them with super user privileges to perform them. You’ll frequently see the prefix sudo before commands, which means you’re telling the computer to run the command with super user privileges.
An alternative to entering sudo before each command is to access the root command prompt, which runs every command with super user privileges. You can access root mode by entering sudo su at the command prompt. After entering sudo su, you’ll see the root@raspberrypi:/home/pi# command prompt, and all subsequent commands will have super user privileges.
Most of the commands below have a lot of other useful options that I don’t mention. To see a list of all the other available options for a command, enter the command, followed by – –help.
BONUS: Download a printable PDF version of this list so you can keep it handy and refer back to it whenever you want.
GENERAL COMMANDS
apt-get update: 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.
apt-get upgrade: Upgrades all of the software packages you have installed.
clear: Clears previously run commands and text from the terminal screen.
date: Prints the current date.
find / -name example.txt: Searches the whole system for the file example.txt and outputs a list of all directories that contain the file.
nano example.txt: Opens the file example.txt in the Linux text editor Nano.
poweroff: To shutdown immediately.
raspi-config: Opens the configuration settings menu.
reboot: To reboot immediately.
shutdown -h now: To shutdown immediately.
shutdown -h 01:22: To shutdown at 1:22 AM.
startx: Opens the GUI (Graphical User Interface).
FILE AND DIRECTORY COMMANDS
cat example.txt: Displays the contents of the file example.txt.
cd /abc/xyz: Changes the current directory to the /abc/xyz directory.
cp XXX: Copies the file or directory XXX and pastes it to a specified location; i.e. cp examplefile.txt /home/pi/office/ copies examplefile.txt in the current directory and pastes it into the /home/pi/ directory. If the file is not in the current directory, add the path of the file’s location (i.e. cp /home/pi/documents/examplefile.txt /home/pi/office/ copies the file from the documents directory to the office directory).
ls -l: Lists files in the current directory, along with file size, date modified, and permissions.
mkdir example_directory: Creates a new directory named example_directory inside the current directory.
mv XXX: Moves the file or directory named XXX to a specified location. For example, mv examplefile.txt /home/pi/office/ moves examplefile.txt in the current directory to the /home/pi/office directory. If the file is not in the current directory, add the path of the file’s location (i.e. cp /home/pi/documents/examplefile.txt /home/pi/office/ moves the file from the documents directory to the office directory). This command can also be used to rename files (but only within the same directory). For example, mv examplefile.txt newfile.txt renames examplefile.txt to newfile.txt, and keeps it in the same directory.
rm example.txt: Deletes the file example.txt.
rmdir example_directory: Deletes the directory example_directory (only if it is empty).
scp user@10.0.0.32:/some/path/file.txt: Copies a file over SSH. Can be used to download a file from a PC to the Raspberry Pi. user@10.0.0.32 is the username and local IP address of the PC, and /some/path/file.txt is the path and file name of the file on the PC.
touch example.txt: Creates a new, empty file named example.txt in the current directory.
NETWORKING AND INTERNET COMMANDS
ifconfig: To check the status of the wireless connection you are using (to see if wlan0 has acquired an IP address).
iwconfig: To check which network the wireless adapter is using.
iwlist wlan0 scan: Prints a list of the currently available wireless networks.
iwlist wlan0 scan | grep ESSID: Use grep along with the name of a field to list only the fields you need (for example to just list the ESSIDs).
nmap: Scans your network and lists connected devices, port number, protocol, state (open or closed) operating system, MAC addresses, and other information.
ping: Tests connectivity between two devices connected on a network. For example, ping 10.0.0.32 will send a packet to the device at IP 10.0.0.32 and wait for a response. It also works with website addresses.
wget http://www.website.com/example.txt: Downloads the file example.txt from the web and saves it to the current directory.
SYSTEM INFORMATION COMMANDS
cat /proc/meminfo: Shows details about your memory.
cat /proc/partitions: Shows the size and number of partitions on your SD card or hard drive.
cat /proc/version: Shows you which version of the Raspberry Pi you are using.
df -h: Shows information about the available disk space.
df /: Shows how much free disk space is available.
dpkg – –get–selections | grep XXX: Shows all of the installed packages that are related to XXX.
dpkg – –get–selections: Shows all of your installed packages.
free: Shows how much free memory is available.
hostname -I: Shows the IP address of your Raspberry Pi.
lsusb: Lists USB hardware connected to your Raspberry Pi.
UP key: Pressing the UP key will print the last command entered into the command prompt. This is a quick way to repeat previous commands or make corrections to commands.
vcgencmd measure_temp: Shows the temperature of the CPU.
vcgencmd get_mem arm && vcgencmd get_mem gpu: Shows the memory split between the CPU and GPU.
Hopefully this list of commands will make navigating Linux on your Raspberry Pi more efficient and enjoyable. If you have any other commands that you use a lot, leave a comment to let us know! And be sure to subscribe to get an email when we publish new articles!
Senin, 29 Oktober 2018
TERMINAL
The terminal (or 'command-line') on a computer allows a user a great deal of control over their system (or in this case, Pi!). Users of Windows may already have come across Command Prompt or Powershell and Mac OS users may be familiar with Terminal. All of these tools allow a user to directly manipulate their system through the use of commands. These commands can be chained together and/or combined together into complex scripts (see the linux usage page on scripting) that can potentially complete tasks more efficiently than much larger traditional software packages.
Opening a Terminal window
On the Raspberry Pi (running Raspbian), the default terminal application is LXTerminal. This is known as a 'terminal emulator', this means that it emulates the old style video terminals (from before graphical user interfaces were developed) in a graphical environment. The application can be found on the Raspberry Pi desktop and when started will look something like this:
Terminal screenshot
You should be able to see the following prompt:
pi@raspberrypi ~ $
This shows your username and the hostname of the Pi. Here the username is pi and the hostname is raspberrypi.
Now, let's try running a command. Type pwd (present working directory) followed by the Enter key. This should display something like /home/pi.
Navigating and browsing your Pi
One of the key aspects of using a terminal is being able to navigate your file system. Firstly, run the following command: ls -la. You should see something similar to:
ls result
The ls command lists the contents of the directory that you are currently in (your present working directory). The -la component of the command is what's known as a 'flag'. Flags modify the command that's being run. In this case the l displays the contents of the directory in a list, showing data such as their sizes and when they were last edited, and the a displays all files, including those beginning with a ., known as 'dotfiles'. Dotfiles usually act as configuration files for software and as they are written in text, they can be modified by simply editing them.
In order to navigate to other directories the change directory command, cd, can be used. You can specify the directory that you want to go to by either the 'absolute' or the 'relative' path. So if you wanted to navigate to the python_games directory, you could either do cd /home/pi/python_games or just cd python_games (if you are currently in /home/pi). There are some special cases that may be useful: ~ acts as an alias for your home directory, so ~/python_games is the same as /home/pi/python_games; . and .. are aliases for the current directory and the parent directory respectively, e.g. if you were in /home/pi/python_games, cd .. would take you to /home/pi.
History and auto-complete
Rather than type every command, the terminal allows you to scroll through previous commands that you've run by pressing the up or down keys on your keyboard. If you are writing the name of a file or directory as part of a command then pressing tab will attempt to auto-complete the name of what you are typing. For example, if you have a file in a directory called aLongFileName then pressing tab after typing a will allow you to choose from all file and directory names beginning with a in the current directory, allowing you to choose aLongFileName.
Sudo
Some commands that make permanent changes to the state of your system require you to have root privileges to run. The command sudo temporarily gives your account (if you're not already logged in as root) the ability to run these commands, provided your user name is in a list of users ('sudoers'). When you append sudo to the start of a command and press enter you will be asked for your password, if that is entered correctly then the command you want to run will be run using root privileges. Be careful though, some commands that require sudo to run can irreparably damage your system so be careful!
Further information on sudo and the root user can be found on the linux root page.
Installing software using apt
You can use the apt command to install software in Raspbian. This is the 'package manager' that is included with any Debian-based Linux distributions (including Raspbian). It allows you to install and manage new software packages on your Pi. In order to install a new package, you would type sudo apt install <package-name> (where <package-name> is the package that you want to install). Running sudo apt update will update a list of software packages that are available on your system. If a new version of a package is available, then sudo apt upgrade will update any old packages to the new version. Finally, sudo apt remove <package-name> removes or uninstalls a package from your system.
More information about this can be found in the Linux usage section on apt.
Other useful commands
There are a few other commands that you may find useful, these are listed below:
cp makes a copy of a file and places it at the specified location (essentially doing a 'copy-paste'), for example - cp file_a /home/other_user/ would copy the file file_a from your home directory to that of the user other_user (assuming you have permission to copy it there). Note that if the target is a folder, the filename will remain the same, but if the target is a filename, it will give the file the new name.
mv moves a file and places it at the specified location (so where cp performs a 'copy-paste', mv performs a 'cut-paste'). The usage is similar to cp, so mv file_a /home/other_user/ would move the file file_a from your home directory to that of the specified user. mv is also used to rename a file, i.e. move it to a new location, e.g. mv hello.txt story.txt.
rm removes the specified file (or directory when used with -r). Warning: Files deleted in this way are generally not restorable.
mkdir: This makes a new directory, e.g. mkdir new_dir would create the directory new_dir in the present working directory.
cat lists the contents of files, e.g. cat some_file will display the contents of some_file.
Other commands you may find useful can be found in the commands page.
Finding out about a command
To find out more information about a particular command then you can run the man followed by the command you want to know more about (e.g. man ls). The man-page (or manual page) for that command will be displayed, including information about the flags for that program and what effect they have. Some man-pages will give example usage.
Opening a Terminal window
On the Raspberry Pi (running Raspbian), the default terminal application is LXTerminal. This is known as a 'terminal emulator', this means that it emulates the old style video terminals (from before graphical user interfaces were developed) in a graphical environment. The application can be found on the Raspberry Pi desktop and when started will look something like this:
Terminal screenshot
You should be able to see the following prompt:
pi@raspberrypi ~ $
This shows your username and the hostname of the Pi. Here the username is pi and the hostname is raspberrypi.
Now, let's try running a command. Type pwd (present working directory) followed by the Enter key. This should display something like /home/pi.
Navigating and browsing your Pi
One of the key aspects of using a terminal is being able to navigate your file system. Firstly, run the following command: ls -la. You should see something similar to:
ls result
The ls command lists the contents of the directory that you are currently in (your present working directory). The -la component of the command is what's known as a 'flag'. Flags modify the command that's being run. In this case the l displays the contents of the directory in a list, showing data such as their sizes and when they were last edited, and the a displays all files, including those beginning with a ., known as 'dotfiles'. Dotfiles usually act as configuration files for software and as they are written in text, they can be modified by simply editing them.
In order to navigate to other directories the change directory command, cd, can be used. You can specify the directory that you want to go to by either the 'absolute' or the 'relative' path. So if you wanted to navigate to the python_games directory, you could either do cd /home/pi/python_games or just cd python_games (if you are currently in /home/pi). There are some special cases that may be useful: ~ acts as an alias for your home directory, so ~/python_games is the same as /home/pi/python_games; . and .. are aliases for the current directory and the parent directory respectively, e.g. if you were in /home/pi/python_games, cd .. would take you to /home/pi.
History and auto-complete
Rather than type every command, the terminal allows you to scroll through previous commands that you've run by pressing the up or down keys on your keyboard. If you are writing the name of a file or directory as part of a command then pressing tab will attempt to auto-complete the name of what you are typing. For example, if you have a file in a directory called aLongFileName then pressing tab after typing a will allow you to choose from all file and directory names beginning with a in the current directory, allowing you to choose aLongFileName.
Sudo
Some commands that make permanent changes to the state of your system require you to have root privileges to run. The command sudo temporarily gives your account (if you're not already logged in as root) the ability to run these commands, provided your user name is in a list of users ('sudoers'). When you append sudo to the start of a command and press enter you will be asked for your password, if that is entered correctly then the command you want to run will be run using root privileges. Be careful though, some commands that require sudo to run can irreparably damage your system so be careful!
Further information on sudo and the root user can be found on the linux root page.
Installing software using apt
You can use the apt command to install software in Raspbian. This is the 'package manager' that is included with any Debian-based Linux distributions (including Raspbian). It allows you to install and manage new software packages on your Pi. In order to install a new package, you would type sudo apt install <package-name> (where <package-name> is the package that you want to install). Running sudo apt update will update a list of software packages that are available on your system. If a new version of a package is available, then sudo apt upgrade will update any old packages to the new version. Finally, sudo apt remove <package-name> removes or uninstalls a package from your system.
More information about this can be found in the Linux usage section on apt.
Other useful commands
There are a few other commands that you may find useful, these are listed below:
cp makes a copy of a file and places it at the specified location (essentially doing a 'copy-paste'), for example - cp file_a /home/other_user/ would copy the file file_a from your home directory to that of the user other_user (assuming you have permission to copy it there). Note that if the target is a folder, the filename will remain the same, but if the target is a filename, it will give the file the new name.
mv moves a file and places it at the specified location (so where cp performs a 'copy-paste', mv performs a 'cut-paste'). The usage is similar to cp, so mv file_a /home/other_user/ would move the file file_a from your home directory to that of the specified user. mv is also used to rename a file, i.e. move it to a new location, e.g. mv hello.txt story.txt.
rm removes the specified file (or directory when used with -r). Warning: Files deleted in this way are generally not restorable.
mkdir: This makes a new directory, e.g. mkdir new_dir would create the directory new_dir in the present working directory.
cat lists the contents of files, e.g. cat some_file will display the contents of some_file.
Other commands you may find useful can be found in the commands page.
Finding out about a command
To find out more information about a particular command then you can run the man followed by the command you want to know more about (e.g. man ls). The man-page (or manual page) for that command will be displayed, including information about the flags for that program and what effect they have. Some man-pages will give example usage.
PERINTAH DASAR RASPBERRY PI
RASPBERRY
Perintah Dasar Raspberry
1.Perintah yang berkaitan dengan informasi dan dokumentasi
a. man
adalah salah satu perintah yang bisa memberikan informasi lengkap (manual) mengenai perintah dasar yang ingin diketahui.
Contoh : adiarray@lp2maray:~ $ man man
Setelah perintah di atas kita ketikkan, di terminal akan menampilkan manual mengenai perintah man, lengkap yang terdiri dari NAME, yang berisi nama perintah dan keterangan singkat fungsi dari perintah. SYNOPSIS, DESCRIPTION, EXAMPLE, OPTION dsb. Untuk membaca baris selanjutnya tekan panah bawah, bila anda sudah selesai membaca manual dari perintah tekan Ctrl+Z.
b. whatis
Perintah ini menampilkan informasi singkat mengenai suatu perintah.
Contoh : adiarray@lp2maray:~ $ whatis ls
Setelah perintah diketikkan, maka akan terdapat informasi bahwa
ls (l) – list directory content
Artinya berarti perintah ls digunakan untuk menampilkan isi direktori.
c. apropos
berfungsi untuk menampilkan informasi singkat perintah yang hanya anda ketahui sebagian atau anda ingin menampilkan perintah yang berhubungan dengan sesuatu.
Contoh : adiarray@lp2maray:~ $ apropos copy
Maka semua perintah yang berhubungan dengan copy ditampilkan beserta informasi singkatnya.
d. –help
Bantuan yang satu ini berupa option yang bisa kita tambahkan ke perintah dasar yang kita inginkan. Penambahan option ini bertujuan untuk menampilkan informasi singkat mengenai perintah tersebut.
Contoh : adiarray@lp2maray:~ $ ls –help
e.history
Semua perintah-perintah yang sudah pernah anda ketikkan, akan disimpan ke dalam history. Untuk menampilkan anda bisa menggunakan perintah history.
Contoh : adiarray@lp2maray:~ $ history
Perintah yang sudah pernah kita gunakan bisa digunakan lagi tanpa harus mengetik ulang. Kita bisa mencarinya dengan menekan tombol panah atas atau panah bawah. Bila sudah menemukan perintah yang ingin digunakan, tekan tombol Enter. Untuk membersihkan history yang sudah ada, gunakan perintah : adiarray@lp2maray:~ $ history –c
2. Perintah yang berkaitan dengan Direktori dan isinya.
a. ls atau dir
Menampilkan isi dari suatu direktori.
Contoh :
adiarray@lp2maray:~ $ ls
adiarray@lp2maray:~ $ ls /home/
Beberapa argumen yang biasa dipakai :
ls –a : semua folder dan file akan terlihat termasuk yang tergolong hidden.
ls -l : menampilkan isi direktori secara lengkap, mulai dari hak akses, owner, group dan tanggal file atau direktori tersebut dibuat.
ls -i : menampilkan isi direktori dan ukurannya.
Apa yang terjadi jika yang kita ketikkan ls -lia ?
b.pwd
Kepanjangan dari Print Working Directory. Menampilkan direktori yang sedang aktif (curent directory). Contoh : adiarray@lp2maray:~ $ pwd
c.cd
Kepanjangan dari change directory. Perintah untuk berpindah direktori aktif.
Contoh : adiarray@lp2maray:~ $ cd /home
perintah di atas artinya kita langsung akan masuk ke direktori /home. Untuk kembali ke direktory atasnya/awalnya bisa menggunakan perintah cd ..
d.mkdir
Perintah untuk membuat direktori kosong.
Contoh : adiarray@lp2maray:~ $ mkdir data-hendri
Huruf besar dan kecil di sini diperhatikan, dan jika membuat direktori dengan awalan karakter titik maka secara otomatis direktori tersebut akan hidden/tersembunyi. Jika ingin membuat nama direktori dua kata, perkata diakhiri tanda \, misal : mkdir data\ hendri\
e.rmdir
Perintah untuk menghapus direktori.
Contoh : adiarray@lp2maray:~ $ rmdir data-hendri
f.rm –rf
Perintah untuk menghapus direktory beserta file di dalamnya.
Contoh : adiarray@lp2maray:~ $ rm -rf data-hendri
3. Perintah yang berkaitan dengan management File
a. touch
Perintah untuk mengganti waktu pembuatan suatu file. Tetapi bila file yang anda ketikkan belum ada maka secara otomatis file tersebut akan dibuat. Kita bisa juga menentukan tipe file yang kita inginkan, biasanya .txt dan .conf Tetapi file yang dibuat dengan perintah ini adalah file kosong ( tidak ada isinya). Contoh : adiarray@lp2maray:~ $ touch biografiku.txt
b. cat
digunakan untuk menampilkan isi file. Biasanya file yang ditampilkan dengan perintah ini adalah file yang bertipe teks. Dan yang pasti bukan file kosong.
Contoh : adiarray@lp2maray:~ $ cat biografiku.txt
Karena file biografiku.txt masih kosong maka tidak tampak apa-apa. Sekarang kita bisa mengisi file tersebut dengan perintah cat > biografiku.txt lalu tekan tombol Enter, kemudian mulailah mengetikkan isi file teks yang kita inginkan. Kalau sudah selesai simpan file tersebut dengan menekan Ctrl + C. Panggil lagi dengan perintah cat biografiku.txt.
c. cp
Berfungsi untuk mengcopy atau menduplikat file dan/atau direktori.
Format penulisan : cp nama_file_awal nama_file_akhir
Contoh :
adiarray@lp2maray:~ $ cp data data-adi < pindah satu tempat (harus direname)
adiarray@lp2maray:~ $ cp data-adi /home/adiarray/Documents ( pindah lain tempat )
d.mv
Perintah untuk memindahkan file dan direktori. Perintah ini juga bisa digunakan untuk merename (mengganti) nama file atau direktori.
Format : mv nama_file nama_file_baru atau mv nama_file direktori tujuan
Contoh :
adiarray@lp2maray:~ $ mv test.txt test_hendri.txt
adiarray@lp2maray:~ $ mv /home/hendri/data /home/hendri/dokumen
e.rm
Untuk menghapus (remove) file atau direktori.
Format : rm nama file/direktori
Contoh :
adiarray@lp2maray:~ $ rm biografiku.txt
4. Command Line yang berkaitan dengan informasi system
a.uname
Perintah ini akan menampilkan informasi system komputer anda, antara lain tipe mesin komputer, hostname, nama dan versi sistem operasi dan tipe prosesor. Biasanya ditambahkan option –a atau –all agar informasi secara komplit ditampilkan.
Contoh :
~ $ uname -a
$ uname -or
2.6.18-128.el5 GNU/Linux
$ lsb_release -irc
Distributor ID: Ubuntu
Release: 9.04
Codename: jaunty
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.6 (squeeze)
Release: 6.0.6
Codename: squeeze
b.date dan cal
Perintah untuk menampilkan tanggal dan waktu system, serta kalender
c.df
Perintah untuk menampilkan penggunaan space filesystem dari hardisk kita.
5. Perintah yang berkaitan dengan user
a. who
Perintah ini digunakan untuk menampilkan user yang sedang login saat ini. Informasi yang tampak adalah nama user/username, di terminal (pts) berapa user tersebut berada dan waktu loginnya.
b. whoami
Perintah bila kita ingin menampilkan user yang sedang aktif atau username kita sendiri.
c. sudo dan visudo
User biasa tidak dapat menggunakan hak root sehingga tidak dapat menjalankan perintah-perintah milik root. Untuk menggunakan hak root, digunakan perintah sudo. Tetapi sebelum menggunakan perintah sudo, user tersebut sudah harus masuk dalam daftar pengguna sudo. Untuk memasukkan user ke dalam daftar, gunakan perintah visudo.
Biasanya, untuk masuk ke mode root atau super user atau administrator, beberapa distro cukup mengetikkan sudo su.
Contoh :
adiarray@lp2maray:~ $ sudo su
password :
adiarray@lp2maray: /home/hendri#
d. su
Perintah untuk dapat berpindah dari user yang sedang aktif menjadi user lain tanpa harus melakukan logout.
Contoh :
adiarray@lp2maray:~ $ su agus
password :
masukkan password dari username, jika berhasil maka akan berubah :
adiarray@lp2maray : ~ $
e. passwd
Perintah ini digunakan jika kita ingin mengganti password yang sudah ada.
adiarray@lp2maray:~# passwd
Changing password for user adiarray.
New UNIX password: > masukkan 6 karakter password
Retype new UNIX password: > isikan sekali lagi
passwd: all authentication tokens updated successfully. > password berhasil diganti
f. clear
Jika tampilan di layar cukup banyak dan bisa membuat bingung, kita dapat membersihkannya dengan perintah clear.
g. chmod
Perintah untuk mengubah file permission/ijin akses suatu file. Izin akses file ada tiga, yaitu; r : read (membaca); w: write (menulis); x : execute (menjalankan).
Kita dapat menggunakan sistem numeric coding atau sistem letter coding.
Ada tiga jenis permission/perijinan yang dapat dirubah yaitu :
r untuk read, w untuk write dan x untuk execute.
Dengan menggunakan letter coding, kita dapat merubah permission diatas untuk masing-masing u (user), g (group), o (other) dan a (all) dengan hanya memberi tanda plus (+) untuk menambah ijin dan tanda minus (-) untuk mencabut ijin.
Misalnya untuk memberikan ijin baca dan eksekusi file coba1 kepada owner dan group, perintahnya adalah:
$ chmod ug+rx coba1
Untuk mencabut ijin-ijin tersebut:
$ chmod ug-rx coba1
Dengan menggunakan sitem numeric coding, permission untukuser, group dan other ditentukan dengan menggunakan kombinasi angka-angka, 4, 2 dan 1 dimana 4 (read), 2 (write) dan 1 (execute).
Misalnya untuk memberikan ijin baca(4), tulis(2) dan eksekusi(1) file coba2 kepada owner, perintahnya adalah:
$ chmod 700 coba2
Contoh lain, untuk memberi ijin baca(4) dan tulis(2) file coba3 kepada user, baca(4) saja kepada group dan other, perintahnya adalah:
$ chmod 644 coba3
COMMAND DASAR PADA RASPBIAN
Ada beberapa sistem operasi yang kompatibel dengan Raspberry Pi, dan semuanya menggunakan kernel Linux (anda bisa melihat daftarnya di sini). Meskipun akhir – akhir ini Microsoft mengeluarkan Sistem Operasi.
Windows 10 for IOT yang disebut mendukung Raspberry Pi 2, namun kita tidak akan membahasnya
(setidaknya belum untuk saat ini) dikarenakan Sistem Operasi ini masih tergolong baru dan biasanya
belum matang, belum lagi sifatnya yang bukan open source sehingga membuat penulis cenderung
mengesampingkan terlebih dahulu kemunculannya.
Oke, langsung saja ke topik. Perintah dasar yang perlu diketahui untuk pemula adalah sebagai berikut
Untuk mengubah password bisa digunakan perintah sudo raspi-config lalu pilih change_pass
Untuk melakukan restart Raspberry gunakan sudo reboot
Untuk melakukan shutdown gunakan sudo shutdown -h now
Untuk menginstal software yang ada pada repository gunakan apt-get -install
Langganan:
Postingan (Atom)