Many temporary and unused files are left on the Ubuntu drive after installing/uninstalling packages and dependencies. In addition, log files and old versions of the kernel can take up a fair amount of disk space. This article shows you how to clean up your Ubuntu Server hard drive by deleting temporary and unused files.
Category: Linux
By default, Linux distributions do not include popular proprietary fonts from Microsoft. Linux users often search for how to install Times New Roman font from Microsoft. If you need to use this font in LibreOffice, Gimp or any other graphical Linux application, you can install it.
Continue reading “Install Microsoft Fonts (including Times New Roman) on Linux”
On Linux, you can run a bash script as a service via systemd (instead of using the cron scheduler). This allows you to ensure that the script is always running, run the bash script on startup, check its health, and take advantage of other systemd benefits.
Continue reading “Running Bash Shell Script as Systemd Service on Linux”
The sudo command in Linux allows you to run commands as another user (it is most commonly used to run a command with elevated privileges as root). In some cases, when you try to run a command with sudo, an error message is displayed:
-bash: sudo: command not found
Continue reading “Fix ‘Bash Sudo: Command Not Found’ on Linux”
In this article, we’ll look at how to mount a shared network folder hosted on a Windows computer in Linux. Windows uses the SMB (Server Message Block) protocol, formerly known as CIFS (Common Internet File System) to share and access shared folders over the network. On Linux, you can use the cifs-utils or Samba client to access Windows network shares via SMB protocol.
Continue reading “How to Mount Windows SMB Share on Linux with CIFS”
The error ‘Could not connect to bus: No such file or directory
‘ is quite common on Linux operating systems. This error can occur when managing the service through systemctl or when the computer is switched off.
Continue reading “‘Failed to connect to bus: No such file or directory’ Error on Linux”
In order to backup PostgreSQL, you can use the:
- SQL dumps (pg_dump and pg_dumpall)
- Copying PostgreSQL files
- Continuous archiving (backing up) with pg_basebackup and WAL files.
There are several tools you can use to quickly find out which files and directories are taking up the most space on your Linux machine. In this post, I will show the methods I use most to find out what takes up free space in Linux.
Continue reading “Find the Largest Files and Directories in Linux”
MC (Midnight Commander) is one of the most commonly used console file managers for Linux. One drawback most Linux users face is that mc
sometimes takes a very long time to start.
Continue reading “Fix: Slow Start of Midnight Commander (MC) on Linux”
In this article, we will look at how to run a bash script only on the first user login to Linux (or only on the first boot).
Continue reading “Linux: Run a Bash Script Only Once at Startup”