Categories
Linux Useful

Change the extension of multiple files in Linux

1). Using Linux find command Using find command to rename all .oldext files under directory structure with a new extension: .newext find . -type f -name “*.oldext” -exec rename ‘s/\.oldext$/.newext/’ ‘{}’ \; 2). Using Linux find command, but in a different approach for f in `find . -iname ‘*.oldext’ -type f -print`;do mv “$f” ${f%.oldext}.newext; […]

Categories
Linux

Reload fstab (/etc/fstab) – dynamic loading without restart – Linux

When we make a change in the /etc/fstab file in order to be active (ie taken into account) we need to notify the operating system to refresh the commands in fstab or to restart the system, which is not mandatory! So, to reload the commands from fstab, in linux we have the mount command, which […]

Categories
Linux Useful

View the file size of a directory in LINUX – Folders and Subfolders

If we want to see what is the size occupied by folders or subfolders in linux, we can use the du command, that is a command line utility for reporting file system disk space usage. It can be used to find out disk usage for files or folders and to show what is taking up […]

Categories
Linux Servers Tools Useful

Disk Partitions Commands in Ubuntu/Debian Server – LINUX Tools

1. fdisk The fdisk command can display the partitions and details like file system type, model, zise. In Ubuntu 20.04 report the size of each partitions, but not in all Linux distributions! @ sudo fdisk -l Disk /dev/nvme0n1: 232.91 GiB, 250059350016 bytes, 488397168 sectors Disk model: Samsung SSD 970 EVO 250GB Units: sectors of 1 […]

Categories
Linux Tools

Linux ext4-exFat Copy problem with MC (Midnight Commander) file manager

Not lon ago I encountered a rather bizarre situation using MC file manager, an application that I have been using for a long time in Linux, maybe out of nostalgia from the times when I used Norton Commander or Norton Desktop on the MS-DOS operating system . Generally on Linux I use MC because it […]