Raspberry Pi OS (1) - Basic Linux commands tutorial

Basic Linux commands tutorial

These essential commands help you navigate and manage files and directories in the Linux terminal:

  • pwd: Stands for "print working directory" and displays the full path of the current directory you're in.

  • ls: Lists the files and directories in the current directory. You can use options like ls -l for detailed information or ls -a to show hidden files.

  • cd: Changes the current directory. For example, cd /home navigates to the /home directory, and cd .. moves up one level.

  • touch: Creates a new, empty file. For example, touch file.txt creates a file named file.txt.

  • mkdir: Creates a new directory. For instance, mkdir new_folder creates a directory called "new_folder."

  • cp: Copies files or directories. For example, cp file1.txt file2.txt copies file1.txt to file2.txt.

  • mv: Moves or renames files or directories. For example, mv oldname.txt newname.txt renames a file, or mv file.txt /destination/ moves it to a new location.

  • rm: Deletes files or directories. rm file.txt removes a file, while rm -r folder removes a directory and its contents.


Components

If you want to buy a RaspberyPi 5 board try on amazon: https://amzn.to/4dqDhXz
or aliexpress: https://s.click.aliexpress.com/e/_DEVUTJh   

Documentation

Support this blog

If you make purchases using the links that lead to emag.roamazon and aliexpress.com, you will support my blog, and 50% of the donations will be directed to the "Dăruiește Viață" foundation. Thank you!

Thank you for your attention!

For questions and/or technical consulting, I am available in the comments section below or via email at simedruflorin@automatic-house.ro. Have a great day, everyone!


Back to top of page

Etichete

Afișați mai multe

Arhiva

Afișați mai multe