March 6, 2026

PBX Science

VoIP & PBX, Networking, DIY, Computers.

You must master these basic Linux commands

You must master these basic Linux commands



You must master these basic Linux commands

People often ask whether they need to learn Linux systematically? The answer is no, you just need to master some basic commands.

For specific operations, it is completely OK to face search engines/chatGPT when you encounter them.

You must master these basic Linux commands

 

Many beginners in fields like deep learning, machine learning, data analysis, mostly operating in Python environments, start their learning journey on Windows. Tools like Anaconda make environment management easy in this context.

However, for deeper immersion in these fields, interacting with the Linux operating system becomes inevitable. People often ask if it’s necessary to learn the entire system. The answer is no. Just grasp some basic commands. Specific operations can always be tackled using search engines or chatbots when encountered.

While not a requirement to know everything, mastering the following high-frequency basic operations is essential. Let’s take a look.

 


Navigation Commands Firstly, understanding navigation commands, likely the most frequently used:

  • cd: Enter a directory
  • ls: List all content in the current directory; use -l option for a detailed display, including permissions, ownership, and timestamps
  • pwd: Display the current directory’s path
  • mkdir: Create a new directory; for instance, to create a folder named ‘build’ in the current directory, use mkdir build

File Management Commands Next are file management commands, enabling you to create, delete, and manage files and directories:

  • touch: Create a new file; for example, to create a new file named ‘new_file.txt’, use touch new_file.txt
  • rm: Delete a file; for instance, to delete the file ‘old_file.txt’, use rm old_file.txt; to delete an entire folder, rm -r build/ (please, no accidental deletions)
  • cp: Copy files from one location to another; for example, to copy the ‘file.txt’ from the current directory to the ‘Desktop’ directory, use cp file.txt ~/Desktop
  • mv: Move files from one location to another or change file names; for instance, to move ‘file.txt’ from the current directory to the ‘Desktop’ directory, use mv file.txt ~/Desktop
  • find: Locate a file; for instance, to find a file named ‘file.txt’ within ‘/home’, use find /home -name "file.txt"

Text Processing Commands Then come text processing commands for handling text files:

  • cat: Display the contents of a text file; for example, to display the contents of ‘file.txt’, use cat file.txt
  • grep: Search within a file; for instance, to search for the word ‘hello’ in ‘file.txt’, use grep "hello" file.txt
  • sort: Sort the contents of a file; for instance, to sort the content of ‘file.txt’ alphabetically, use sort file.txt
  • wc: Calculate the number of lines, words, and characters in a file; for example, to count the number of lines in ‘file.txt’, use wc -l file.txt

System Information Commands Mastering system information commands helps in obtaining system details and monitoring performance:

  • uname: Display information about the operating system; for example, to display the name and version of the operating system, use uname -a
  • top: Display information about running processes and their usage of system resources in real-time; for monitoring CPU and memory usage when a program runs, htop is commonly used
  • df: Display information about available disk space on the system; for instance, to show disk space usage for all mounted file systems, use df -h
  • free: Display information about available memory on the system; for example, to show the system’s memory usage, use free -m

Package Management Commands When frequently configuring environments following READMEs on GitHub, this set of commands becomes essential:

  • apt-get update: Update the software package index on the system, downloading the latest information about available packages and their dependencies from the internet
  • apt-get install: Install a software package; for example, to install the ‘nano’ text editor, use apt-get install nano
  • apt-get remove: Delete a software package; to remove the ‘nano’ text editor, use apt-get remove nano
  • apt-get upgrade: Upgrade all installed software packages on the system to their latest versions

Network Management Commands For configuring network interfaces on the system and testing connections with remote hosts:

  • ifconfig: Configure network interfaces, providing detailed information about IP addresses, network masks, and other network configurations
  • ping: Test the connection with a remote host by sending requests and measuring the time required for a response

Process Management Commands Commands for viewing and managing running processes on the system:

  • ps: Display information about running processes, offering details like process IDs, command names, and other process-specific details
  • kill: Terminate a running process by sending a signal to stop it

These commands represent only the most basic usage but cover the majority of use cases.

 

Linux Official Website

You must master these basic Linux commands


Windows Software Alternatives in Linux


Disclaimer of pbxscience.com

PBXscience.com © All Copyrights Reserved. | Newsphere by AF themes.