Safely Find and Delete Files in Linux with find

The find command is useful for locating files recursively and then taking action on them. When deleting files, it is safer to list the matches first and delete only after checking the output. List matching files first List all .tmp files below the current directory: List all .log files below the current directory: Delete after … Read more

Establishing a LAN Among Linux Machines

A small LAN between Linux machines usually needs three things: working network connectivity, correct IP addressing, and a way to share or access services between machines. Check IP addresses Machines on the same LAN are usually in the same IP range, such as 192.168.1.x, depending on the router or DHCP server. Test connectivity Replace the … Read more

Linux File Permissions

Linux file permissions control who can read, write or execute a file. This is one of the first things to check when a script does not run, a service cannot read a file, or a user cannot access a directory. View permissions A typical output line looks like this: The first character shows the type … Read more

Network Printers in Linux

Network printers are usually easier to manage when you know the printer IP address, queue name and protocol being used. On Linux systems, printing is commonly handled through CUPS. Useful checks These commands show configured printers and the device URI used by each printer. Check CUPS service When troubleshooting, confirm that the printer is reachable … Read more