Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Foundations

Linux command line cheat sheet

Opens with credits

A quick-revision book on working in a Linux terminal: moving around the filesystem, slicing text, permissions, processes, services, packages, SSH and scheduling, ending with Bash scripting. Keep it open while you work on a server, in a container or in your own terminal, and look up the command or the gotcha you need.

Curated by Tauseef Fayyaz9 chapters65 concepts97 glossary terms

Chapters

9 chapters · 65 concepts

  1. 1Filesystem and navigationLinux has one directory tree starting at /, with a conventional place for everything. Knowing the layout tells you where to look.7 concepts
  2. 2Files and text toolsLinux tools treat text as lines. Small programs that each do one thing well can be chained to answer most questions about logs and data.8 concepts
  3. Redirection, pipes and the shellEvery program has three standard streams. Redirecting and joining them is what makes the command line composable.7 conceptsOpens with credits
  4. Permissions, users and sudoEvery file has an owner, a group and permission bits, and every process runs as some user. Together they decide who can do what.7 conceptsOpens with credits
  5. Processes, jobs and servicesEvery running program is a process. You inspect, signal and schedule them, and systemd keeps long-running services alive.7 conceptsOpens with credits
  6. Packages, disks and memoryInstalling software and keeping an eye on disk, memory and load: the checks you run on any server that misbehaves.6 conceptsOpens with credits
  7. Networking commands and SSHChecking addresses and ports, fetching URLs, and working securely on remote machines with SSH.7 conceptsOpens with credits
  8. Environment, archives and schedulingHow the shell finds programs and settings, how to pack files up, and how to run jobs on a schedule.7 conceptsOpens with credits
  9. Bash scriptingWhen you type the same commands twice, put them in a script. These are the pieces of Bash you need to write scripts that are safe to run.9 conceptsOpens with credits
  10. 10Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.97 terms

About this sheet

The Linux shell from first commands to safe Bash scripts: files, text tools, permissions, processes, services, SSH and more.

Picked from the other libraries by shared topics.

Project structures

See all
Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com