Unix Commands List
Unix Commands List
Unix Commands List
Flags:
Flags:
pwd (print working directory): Prints the full path of the current directory.
Flags:
Flags:
Commands List 1
Flags:
Flags:
Text Processing:
Flags:
Flags:
Flags:
Commands List 2
Example: sort file.txt sorts "file.txt" alphabetically.
Flags:
wc (word count): Prints newline, word, and byte counts for files.
sed (stream editor): A stream editor for manipulating text files (filtering,
searching, replacing content). (Syntax is complex).
System Information:
uname (show system name): Prints system information like kernel version
and operating system name.
Flags:
Flags:
Flags:
Commands List 3
Example: df -h displays disk usage information for all mounted
filesystems.
Flags:
free (free memory): Displays the amount of free and used memory in the
system.
Flags:
uptime (system uptime): Shows how long the system has been running.
System Management:
Example: sudo apt update updates the package list with root privileges
(assuming you use apt for package management).
Flags:
Commands List 4
Example: sudo shutdown -h now halts the system immediately (requires root
privileges).
Example: sudo systemctl start apache2 starts the Apache web server
(assuming it's called apache2 on your system).
Flags:
Example: journalctl -u apache2 -f follows logs for the Apache web server.
Network Operations:
Flags:
scp (secure copy): Securely copies files between local and remote
machines.
Commands List 5
Example: scp file.txt user@server_ip:/destination/folder copies "file.txt" to
the remote server in the specified folder.
Commands List 6