LINUX SYSTEM ADMINISTRATION
Table of contents:
*Useful commands
1. Introduction to Linux System Administration
● What is Linux?
● What is System Administration?
● Why learn Linux System Administration?
2. Setting Up a Linux System
● Choosing a Linux distribution
● Installation process
● Basic system configuration
3. User and Group Management
● Creating and managing user accounts
● Setting user and group permissions
● Configuring password policies
4. File System Management
● Understanding the Linux file system
● Managing files and directories
● Disk management and partitioning
5. Networking
● Understanding network interfaces and IP addressing
● Configuring network settings
● Setting up firewall rules
6. System Maintenance and Monitoring
● Installing and updating software packages
● Backing up and restoring data
● Monitoring system performance
7. Security
● Configuring security settings
● Managing access controls
● Securing network services
8. Conclusion
● Tips for continued learning
● Resources for further study
, 2
Useful commands
Linux has many commands that can be used to perform various tasks on the command
line interface. Here are some common Linux commands:
cd: Change directory
● Syntax: cd [directory]
● Example: cd /home/user/Documents/
ls: List directory contents
● Syntax: ls [options] [directory]
● Example: ls -l /home/user/
pwd: Print working directory
● Syntax: pwd
● Example: pwd
mkdir: Make directory
● Syntax: mkdir [directory]
● Example: mkdir /home/user/NewDirectory/
rm: Remove files or directories
● Syntax: rm [options] [file/directory]
● Example: rm -rf /home/user/unwanted_directory/
cp: Copy files or directories
● Syntax: cp [options] source destination
● Example: cp file1.txt /home/user/Documents/
mv: Move files or directories
● Syntax: mv [options] source destination
● Example: mv file1.txt /home/user/Documents/
, 3
touch: Create empty file or update file timestamp
● Syntax: touch [file]
● Example: touch file.txt
cat: Concatenate and display files
● Syntax: cat [options] [file]
● Example: cat file.txt
echo: Print text or variables to the terminal
● Syntax: echo [text/variable]
● Example: echo "Hello World"
Listing all the Linux commands can be a lengthy process, as there are many commands
available depending on the Linux distribution and installed packages. However, here are
some of the most commonly used Linux commands, grouped by their functionalities:
File Management:
cd: Change director
ls: List directory contents
pwd: Print working directory
mkdir: Make directory
rm: Remove files or directories
cp: Copy files or directories
mv: Move files or directories
touch: Create empty file or update file timestamp
, 4
cat: Concatenate and display files
echo: Print text or variables to the terminal
head: Display the beginning of a file
tail: Display the end of a file
wc: Count lines, words, and characters in a file
grep: Search for a pattern in a file
find: Search for files and directories in a directory hierarchy
diff: Compare two files line by line
sort: Sort lines of text
System Information:
uname: Print system information
top: Display system resource usage
ps: Display process information
free: Display system memory usage
df: Display disk usage information
du: Display disk usage of files and directories
uptime: Display system uptime
User Management:
su: Switch user
sudo: Execute a command as another user