Linux commonly used commands
Run the
program./main
sh hello.sh
python hello.py
Switch directory
cd /home to enter the home directory
Copy
cp hello.c //usr Copy hello.c of the current directory to the usr directory
Cut
mv hello.c //usr cuts hello.c in the current directory to the usr directory
View
ls lists all files in the current directory
Compress and decompress
tar
tar
zip
unzip
USB related
lsusb to view usb status
Network
ifconfig view network card