Leon Anavi
IT Tips && Tricks

Administration

Created: 10.08.2024 18:54 Last Modified: 10.08.2024 19:17 Views: 231
Keywords: cli, linux, terminal

Linux for Beginners

These lessons provide an introduction to fundamental commands for using a command-line interface (CLI) in Linux. They are designed to quickly familiarize beginners with Linux, making it easier to use Linux on personal computers, cloud servers, or single-board computers like the Raspberry Pi. The instructional videos were recorded on Ubuntu LTS 2024.04, but the commands and concepts covered can be applied in a terminal to any popular Linux distribution, including Debian, Fedora, openSUSE, Arch Linux, etc.

Lesson 1: Navigating Directories

pwd

Print the current working directory. Open a terminal and type pwd to print the current working directory. Use it to know where you are in the file system.

Lesson 2: Listing Files

ls

List files and directories in the current directory. Add -l for detailed info.

Lesson 3: Changing Directories

cd directory_name

Change the current directory to directory_name. Use cd .. to move up one directory.

Lesson 4: Creating Directories

mkdir directory_name

Create a new directory named directory_name.

Lesson 5: Removing Directories

rmdir directory_name

Remove an empty directory named directory_name.

Lesson 6: Creating Files

touch filename

Create an empty file named filename.

Lesson 7: Removing Files

rm filename

Remove a file named filename. Use with caution as this action is irreversible.

Lesson 8: Copying Files

cp source destination

Copy a file from source to destination.

Lesson 9: Renaming or Moving Files

mv source destination

Move or rename a file from source to destination.

Lesson 10: Viewing File Contents

cat filename

Display the contents of filename.



  Home | About | Contact | Disclaimer | Sitemap © 2009-2022 Leon Anavi. All rights reserved.