Course Content
Lesson 1: Introduction to Linux
Objective: Understand what Linux is and why it’s widely used.
0/4
Lesson 2: Installing Linux
Objective: Learn how to set up a Linux environment on your system.
0/4
Lesson 3: Understanding Linux File Structure
Objective: Familiarize yourself with the hierarchical Linux file system and understand the purpose of key directories.
0/2
Lesson 4: Essential Linux Commands
Objective: Learn and practice basic Linux commands to interact with the system effectively.
0/1
Lesson 5: Advanced Linux Commands and Utilities
Objective: Enhance your command-line skills by learning advanced Linux commands and utilities.
0/6
Lesson 6: Linux User Management and Permissions
Objective: Learn how to manage users, groups, and permissions effectively in Linux.
0/7
Lesson 7: Introduction to Linux Shell Scripting
Objective: Learn the basics of shell scripting to automate tasks and enhance productivity.
0/5
Lesson 8: Linux Package Management and Software Installation
Objective: Learn how to manage software packages and install applications on Linux systems using various package managers.
0/8
Lesson 9: Linux Networking Basics
Objective: Understand the fundamentals of Linux networking, including network configuration, troubleshooting, and essential tools.
0/7
Lesson 10: Linux Security and Firewall Management
Objective: Learn fundamental Linux security practices, including managing firewalls, setting up secure access, and understanding key security concepts.
0/6
Lesson 11: Recap and Next Steps
Objective: Summarize the course and provide resources for further learning to continue your Linux journey.
0/4
Learn Linux 101 | Zero to Hero ( Starter Pack )
About Lesson

Linux commands are used to perform tasks such as file management, process control, and system navigation. Commands are entered in the terminal, and understanding their usage is critical for efficient Linux usage.

Basic Linux Commands

1. Navigation Commands

These commands help you move around the Linux file system:

  • pwd: Displays the current working directory.

  • ls: Lists files and directories in the current directory.

    • Options:

      • ls -a: Shows all files, including hidden ones.

      • ls -l: Provides a detailed list.

  • cd [directory]: Changes the current directory to the specified one.

    • Example: cd /home/user.

  • cd ..: Moves up one directory level.

2. File and Directory Management

Commands to create, delete, and manipulate files and directories:

  • mkdir [directory_name]: Creates a new directory.

    • Example: mkdir my_folder.

  • touch [file_name]: Creates an empty file.

    • Example: touch newfile.txt.

  • rm [file_name]: Deletes a file.

    • Example: rm oldfile.txt.

    • To delete directories: rm -r [directory_name].

  • mv [source] [destination]: Moves or renames files and directories.

    • Example: mv file1.txt /home/user/documents.

  • cp [source] [destination]: Copies files or directories.

    • Example: cp file1.txt backup_file.txt.

3. Viewing and Editing Files

Commands to view and modify file contents:

  • cat [file_name]: Displays the contents of a file.

    • Example: cat notes.txt.

  • less [file_name]: Views file content one screen at a time.

  • nano [file_name]: Opens a text editor to modify a file.

    • Example: nano config.txt.

4. File Permissions and Ownership

Manage access and ownership of files and directories:

  • chmod [permissions] [file_name]: Changes file permissions.

    • Example: chmod 644 file.txt.

  • chown [owner] [file_name]: Changes the ownership of a file.

    • Example: chown user1 file.txt.

5. Process Management

Monitor and control running processes:

  • ps: Lists running processes.

  • top: Displays an interactive view of running processes and system resource usage.

  • kill [PID]: Stops a process by its Process ID.

    • Example: kill 1234.

6. System Information

Retrieve details about the system:

  • uname -a: Displays system information.

  • df -h: Shows disk space usage.

  • free -h: Displays memory usage.

  • uptime: Provides system uptime information.

7. Package Management (for Debian-based systems like Ubuntu)

Install, update, and remove software:

  • sudo apt update: Updates the package list.

  • sudo apt upgrade: Installs updates for packages.

  • sudo apt install [package_name]: Installs a package.

    • Example: sudo apt install curl.

  • sudo apt remove [package_name]: Removes a package.

Combining Commands

Linux supports chaining multiple commands for efficiency:

  • &&: Runs the next command only if the previous one succeeds.

    • Example: mkdir new_folder && cd new_folder.

  • | (Pipe): Passes the output of one command as input to another.

    • Example: ls | grep txt (Lists files containing “txt”).

IT Vizag
Logo