BeginnerPlatform36 min
Linux command line basics
The commands every pipeline, server and z/OS UNIX session expects you to know: moving around, handling files and permissions, searching logs, checking processes and writing a first script.
What you will be able to do
- Move around the file system with confidence and read any path, absolute or relative
- Create, copy, move and delete files safely, and read and change permissions
- Search logs and output with less, grep and tail, and chain commands with pipes
- Check processes, services and disk space, connect with ssh, and write a small script that returns a proper exit status
Lessons
- The shell, the prompt and moving aroundThe shell is the program that reads the commands you type and runs them. Everything on Linux lives in one tree of folders that starts at /, and three commands get you around it:…
- Files, folders and permissionsYou create folders with mkdir, copy with cp, move or rename with mv, and delete with rm, which has no recycle bin.
- Reading and searching text: logs and outputMost troubleshooting on Linux is reading text: log files, command output and configuration.
- Processes, services and remote accessEvery running program is a process with a number (PID). ps and top show what is running, kill asks a process to stop, and systemctl manages the background services that systemd…
- Your first shell script and exit codesA shell script is a text file of commands that runs from top to bottom. It starts with a #!
Track your progress and earn a certificate.
Free account, 30 quiz questions for this subject.