Filesystem, commands, users, groups, and permissions essentials for DevOps
← Back to Linux Basics and DevOps Automations PageLinux is a powerful, open-source operating system (OS) kernel that, when combined with other software, forms complete OSes called distributions (distros), known for being free, secure, stable, and highly customizable, powering everything from servers, supercomputers, and Android devices to personal desktops, offering unparalleled control and flexibility for developers, businesses, and general users.
Understanding the Linux filesystem hierarchy is essential for navigating and managing resources effectively.
Essential commands every DevOps engineer should know:
ls – List directory contentscd – Change directorypwd – Show current directorycp – Copy files and directoriesmv – Move or rename filesrm – Remove files or directoriesmkdir – Create directoriescat, less, head, tail – View file contentsManaging users and groups is critical for permissions and security:
useradd, usermod, userdel – Manage usersgroupadd, groupmod, groupdel – Manage groupspasswd – Set user passwordsid, who, groupsLinux uses read, write, and execute permissions to control access:
chmod – Change file/directory permissionschown – Change owner and groupls -l – View permissions and ownershipsudo – Execute commands with superuser privilegesInstall, update, and remove software using package managers:
apt (Debian/Ubuntu)yum (RHEL/CentOS 7)dnf (Fedora/RHEL 8+)