Skip to content

Zamotomas/linux_cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

linux_cheatsheet

Welcome to the Linux Cheatsheet project! This repository contains a collection of useful Linux commands and tips that can help you navigate and work efficiently within the Linux environment.

Table of Contents

Introduction

This cheatsheet is designed to provide quick reference to common Linux commands, configurations, and techniques. Whether you're a beginner learning the basics or an experienced user looking for quick reminders, this cheatsheet can be a handy resource.

Usage

You can navigate through the cheatsheet by browsing the markdown files in this repository or by using the table of contents above. Each command or tip is presented along with a brief explanation of its purpose and usage.

If you're looking for a specific command, you can use the search function of your browser (usually accessed with Ctrl + F or Cmd + F) to quickly locate what you need.

Feel free to clone, download, or fork this repository as you see fit. You can also contribute to this cheatsheet by adding new commands, improving explanations, or fixing errors.

Contributing

Contributions to this cheatsheet are welcome! If you have a new command, tip, or improvement you'd like to suggest, here's how you can contribute:

  1. Fork this repository to your GitHub account.
  2. Create a new branch with a descriptive name (git checkout -b new-command).
  3. Make your changes, add new content, or edit existing information.
  4. Commit your changes with a clear and concise message (git commit -m "Add new command: explain_command_here").
  5. Push your changes to your forked repository (git push origin new-command).
  6. Open a pull request in this repository and describe your changes.

Please ensure that your contributions are well-documented and follow the style of the existing cheatsheet.

License

This project is licensed under the MIT License, which means you're free to use, modify, and distribute the contents of this repository for personal or commercial purposes. Attribution is appreciated but not required.


If you find this cheatsheet helpful, consider giving it a ⭐ to show your support!.

Curriculum for Command Line Management in Linux (Expanded)

Level 1: Introduction to the Command Line

What is the Command Line?

  • Basic concepts.
  • Advantages and disadvantages.

Accessing the Command Line

  • Terminal and terminal emulators.
  • Remote login (SSH).

Command Structure

  • Command, options, and arguments.
  • Basic syntax.

Level 2: Navigation and File Management

Navigating the File System

  • Basic commands: ls, cd, pwd.
  • Absolute and relative directories.

File and Directory Management

  • Creating and deleting files and directories: touch, mkdir, rm, rmdir.
  • Moving and renaming: mv.
  • Copying: cp.

Level 3: Operations and Data Management

Content Manipulation

  • Viewing file contents: cat, less.
  • Command-line editors: nano, vim.

Redirection and Pipelines

  • Redirecting output: >, >>.
  • Pipelines: |.

File Permissions and Ownership

  • Basic permissions: read, write, execute.
  • Changing permissions: chmod.
  • Changing owner and group: chown, chgrp.

Level 4: System Administration

Users and Groups

  • Creating and deleting users and groups: useradd, userdel, groupadd, groupdel.
  • Changing passwords: passwd.

Process Management

  • Viewing running processes: ps, top, htop.
  • Managing processes: kill, pkill.

Task Scheduling

  • Cron: scheduling tasks at specific times.
  • at: executing commands at a future time.

Level 5: Networking and Connectivity

Network Configuration

  • Viewing and configuring interfaces: ifconfig, ip.
  • Connectivity testing: ping.

File Transfer

  • Copying files over SSH: scp, rsync.
  • Transferring files with wget and curl.

Level 6: Customization and Automation

Environment Variables and Aliases

  • Defining and using variables: export.
  • Creating aliases for commands: alias.

Basic Shell Scripts

  • Creating and executing scripts: #!/bin/bash.
  • Variables, control structures, and functions.

Level 7: Advanced System Administration

Package Management

  • Package management: apt, yum, dnf, etc.
  • Software installation and updates.

Storage Management

  • Creating and mounting file systems: mkfs, mount.
  • Managing storage space: df, du.

System Security

  • Firewalls: iptables, ufw.
  • Security monitoring: fail2ban, auditd.

Level 8: Advanced Automation and Programming

Task Automation

  • Advanced scripting: complex control structures.
  • Automation with cron and systemd.

Shell Programming

  • Advanced string manipulation.
  • Functions and libraries.

Debugging Tools

  • strace, ltrace, gdb.

About

This repository contains a collection of useful Linux commands and tips that can help you navigate and work efficiently within the Linux environment.

Topics

Resources

Stars

Watchers

Forks