💾 Archived View for dangerouswiki.capsule.town › guides › terminal › commands.gmi captured on 2024-05-26 at 14:44:53. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

888                               d8b                888
888                               Y8P                888
888                                                  888
888888 .d88b. 888d88888888b.d88b. 88888888b.  8888b. 888 
888   d8P  Y8b888P"  888 "888 "88b888888 "88b    "88b888
888   88888888888    888  888  888888888  888.d888888888
Y88b. Y8b.    888    888  888  888888888  888888  888888
 "Y888 "Y8888 888    888  888  888888888  888"Y888888888

Return Home

Back to Previous

How to use Linux Terminal

_by @AzureOrange and @RickDangerous_

This guide provides a list of useful shell commands to use inside RetroPie

1. Print current working directory

pwd

2. change working directory

cd /PATH/TO/DIRECTORY

3. list files inside working directory

ls

4. list files including file permissions

ls -l

5. list files including hidden

ls -a

6. create new directory

mkdir

7. remove file

rm /PATH/TO/FILE

8. remove directory

rm -rf /PATH/TO/DIRECTORY

9. edit file using nano (Text editor)

nano /PATH/TO/FILE

10. shutdown immediately

sudo shutdown -h now

11. reboot

sudo reboot

12. Raspi-Config

sudo raspi-config

13. RetroPie Setup

sudo ~/RetroPie-Setup/retropie_setup.sh

14. network information

ifconfig

15. check CPU temperature

vcgencmd measure_temp

16. change owner of directory and all files in it recursively to user:group Pi

sudo chown -R pi:pi /PATH/TO/DIRECTORY

17. make file executable (mostly shell scripts)

sudo chmod +x /PATH/TO/script.sh