How to Fix Low Disk Space Issues on Ubuntu Linux

Image
How to Fix Low Disk Space Issues on Ubuntu Linux While using Ubuntu Linux, you may encounter various issues caused by insufficient storage space.  Over time, the system may become slower, software updates may fail, or files may no longer be saved properly. 1. Why Disk Space Runs Out on Ubuntu Ubuntu is designed to manage storage efficiently, but disk usage can increase gradually due to several factors: Cached files created during system updates Log files that grow continuously over time Snap packages storing multiple revisions Unused packages and dependencies left behind Large user files accumulated in the home directory These files often grow unnoticed until the system begins to show warning signs. 2. Checking Current Disk Usage The first step in resolving low disk space issues is understanding the current storage situation . 2.1 Check Overall Disk Usage Run the following command in a terminal: df -h This command displays total disk size, used space, an...

Frequently Used Commands in Raspberry Pi OS

Frequently Used Commands in Raspberry Pi OS

Frequently Used Commands in Raspberry Pi OS


Raspberry Pi OS is generally used in a graphical environment, but to use a Raspberry Pi efficiently, working with the terminal (Command Line Interface) is very convenient. 

By using terminal commands, you can quickly and accurately perform most tasks such as checking system status, managing files, configuring network settings, and installing packages.

For users who are new to Raspberry Pi, this will be helpful during learning and development.



1. pwd – Display the Current Working Directory

pwd

Displays the full path of the current directory.

This is one of the most basic commands and is helpful when you are unsure of your current location in the file system.

pwd command
pwd command


2. ls – List Directory Contents

ls ls -l ls -a

Shows files and directories in the current location.

Using options allows you to view detailed information or hidden files.

ls command
ls command


ls -l command
ls -l command



3. cd – Change Directory

cd folder_name cd .. cd ~

Moves between directories.

.. refers to the parent directory, and ~ represents the home directory.



4. mkdir – Create a Directory

mkdir test

Creates a new directory.

This command is commonly used when organizing projects or practice environments.

mkdir command
mkdir command



5. rm – Remove Files and Directories

rm filename rm -r directory_name

Deletes files or directories.

Because deleted files are difficult to recover, this command should be used with caution.



6. cp – Copy Files and Directories

cp source destination cp -r folder1 folder2

Copies files or directories.

This command is especially useful for backup tasks.



7. mv – Move or Rename Files

mv old.txt new.txt

Moves files to a new location or renames them.



8. cat – Display File Contents

cat filename

Outputs the contents of a text file to the terminal.

Frequently used to check configuration files.



9. nano – Terminal-Based Text Editor

nano filename

Nano is one of the most commonly used terminal editors in Raspberry Pi OS.

It is suitable for quickly editing configuration files.



10. top – Monitor System Resources

top

Displays real-time information about CPU usage, memory usage, and running processes.

Very useful for monitoring system performance.

top command
top command


top command execution
top command execution



11. df – Check Disk Usage

df -h

Shows total disk space and available storage.

This is essential for managing SD card storage.

df command
df command


12. free – Check Memory Usage

free -h

Displays the current usage of RAM and swap memory.

free command
free command


13. uname – Display System Information

uname -a

Shows kernel version and system architecture information.

uname command
uname command


14. sudo – Run Commands with Administrative Privileges

sudo command

Used to execute commands that require administrator permissions.

Frequently used when installing software or changing system settings.



15. apt update – Update Package Lists

sudo apt update

Refreshes package information from repositories.

It is recommended to run this before installing new software.



16. apt upgrade – Upgrade Installed Packages

sudo apt upgrade

Upgrades installed packages to the latest available versions.



17. apt install – Install Software Packages

sudo apt install git

Installs required software packages.

This command is essential for expanding system functionality.



18. ip addr – Check Network Information

ip addr

Displays network interfaces and assigned IP addresses.

Commonly used when setting up SSH connections.



19. ping – Test Network Connectivity

ping google.com

Checks whether the network connection is working properly.

This is one of the simplest ways to diagnose connectivity issues.



20. reboot / shutdown – Restart or Shut Down the System

sudo reboot sudo shutdown -h now

Used to safely restart or shut down the Raspberry Pi system.



21. Conclusion

Using terminal commands in Raspberry Pi OS is an important process for understanding the operating system and the system architecture. 

The commands introduced above are repeatedly used in almost every situation when working with a Raspberry Pi.

Regardless of whether you use Raspberry Pi for learning, development, or other purposes, knowing and using these basic commands will greatly improve both problem-solving skills and work efficiency. 

Popular posts from this blog

Understanding Computer System

Understanding System Software

Understanding Operating Systems