0% found this document useful (0 votes)
31 views1 page

Tutorial

Uploaded by

nOTHING
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Tutorial

Uploaded by

nOTHING
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd

Pwd : in ra man hinh duong dan lam viec hien tai

ls : In cac thu muc trong duong dan lam viec


ls -R: in ra cac thu muc trong duong dan va thu muc con
clear :
history :
touch “name.c”: tao file co duoi c
man (command) : Huong dan manual cho cac cau lenh
mkdir “name”: tao thu muc tai con tro
rmdir “name” : Xoa thu muc
cd “name” : Chuyen duong dan ve thu muc
cd ../.. : quay ve home
mv “name” “Vi tri”: chuyen thu muc den vi tri
nano “name”: Mo file duoi app nano
cat “name”: Doc file code tren terminal
grep ‘Tu khoa’ (*): tim tu khoa trong cac file (hoac trong tat ca cac file)
chmod [permissions] [path] (chmod u+x abc.c): cap quyen cho mot user
(chmod u-x abc.c): xoa quyen cua 1 nhom
chmod 762 abc.c : (7=111(rwx); 6-110(rw-); 2=010(r--))
touch x.sh: trong file x.sh go cac cau lenh can thiet thuc hien theo thu tu. Khi chay file x.sh he thong
se thuc thi lan luot tung cau lenh
sudo dpkg -i “name”
sudo apt install rpi-imager
chown
watch n 0.2 gpio readall: cu 0.2 giay doc cau lenh phia sau “-n”
**Thu vien wiring Pi**
gcc “name.c” -o “name chuong trinh” -l(thu vien): them thu vien cho gcc

You might also like