Linux CLI

Tools/Skills: Linux CLI

I've learned and practiced with linux CLI for years. Some commands I've seen only once, others I know like the back of my hand, and some I know they exist and would have to do a brief search to remind myself how to use them. And, there are some I don't know exist, but I know how to look for them.

Some of the projects or challenges I've done with Linux CLI:

Projects & Challenges

  • Tools/Skills: Linux CLI - ls, pwd, cat, rm, cd, chmod, grep, find, history, ps aux, netstat, curl, kill

  • Tools/Skills: Linux CLI - ls -a -l -d, chmod

  • Tools/Skills: Linux CLI, assigned privileges, command injection, privilege escalation

  • Tools/Skills: Linux CLI - pwd, ls, cd, cat, whoami, echo, ping, curl, ifconfig, nmap, ssh, john, hydra, rm, loic, nitro_exp, netstat, iptables, kill

(Attempted) Summary of Known Linux Commands

It's difficult to remember everything I've done, let alone document it. Below is my best attempt at summarizing various commands I've used.

  1. Navigation:

    • cd: Change directory

    • ls: List directory contents

    • pwd: Print working directory

    • mkdir: Create a directory

    • rmdir: Remove an empty directory

    • find: Search for files and directories

    • ln: Create hard or symbolic links

    • cp: Copy files or directories

    • mv: Move or rename files or directories

    • rm: Remove files or directories

    • touch: Create an empty file

  2. Text Processing:

    • cat: Concatenate and display the content of files

    • head/tail: Display the beginning or end of a file

    • more/less: Display content page by page

    • grep: Search for patterns in files

    • wc: Count lines, words, and characters

    • diff: Compare files line by line

    • join: Join lines of two files on a common field

    • echo: Display text or variables to the terminal. Used for printing information or messages to the standard output.

  3. User and Permission Management:

    • sudo: Execute a command as another user (usually root)

    • su: Switch user or become superuser

    • passwd: Change user password

    • users: Display current users

    • chmod: Change file permissions

    • chown: Change file owner and group

    • adduser/useradd: Create a new user

    • deluser/userdel: Delete a user

    • passwd: Change user password

    • whoami: Display effective user ID

  4. Process Management:

    • ps: Display information about running processes

    • kill: Terminate a process

  5. Package Management:

    • apt/apt-get: Package management commands for Debian-based systems

    • dpkg: Package manager for Debian-based systems

  6. Network Tools:

    • ping: Check network connectivity

    • traceroute/tracepath: Trace the route of packets to a destination

    • nslookup/dig: DNS lookup tools

    • ifconfig/ip: Configure network interfaces

    • route: Show or manipulate the IP routing table

    • netstat: Display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

    • tcpdump: Dump traffic on a network

    • nmap: Network exploration tool and security scanner

    • arp: Display or modify the ARP cache

    • route: Manipulate IP routing tables

    • wget: Non-interactive network downloader

    • curl: Command-line tool for transferring data with URL syntax

    • ssh: Secure Shell client and server

    • ufw: Uncomplicated Firewall

Last updated