← Shell Scripting (Bash) learning pathShell Scripting (Bash) · Module 5 of 10
Permissions and processes
Manage file permissions and running programs.
📖 Key ideas
- ls -l shows permissions like -rwxr-xr--.
- chmod changes permissions: chmod +x script.sh, chmod 644 file.
- chown changes owner; sudo runs as admin.
- ps, top/htop show processes; kill PID stops one.
- Run in background with &; jobs, fg, bg manage jobs.
💡 Real-life example: Permissions are a house key system: owner, family (group) and visitors (others) get different keys.
chmodChanges permissions
rwxRead, write, execute
sudoRun as superuser
killSends a signal to a process