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 Useful

du – Get the Size of a Folder in Ubuntu Linux

The linux du command displays the size of file space used by the specified files or folders. If the specified path is a directory (folder), du summarizes disk usage of each subdirectory in that directory. Otherwise, du reports the disk usage of the current working folder. To get the total size of the /srv folder, […]

Categories
Privacy Security

Free and Public DNS Servers for Family – Block Malicious Content!

Cloudflare Free DNS Servers Protect your home against malware – Using the following DNS resolvers will block malicious content: IPv4 1.1.1.2 1.0.0.2 IPv6 2606:4700:4700::1112 2606:4700:4700::1002 Protect your home against malware and adult content – Next DNS resolvers for Families will block malware and adult content: IPv4 1.1.1.3 1.0.0.3 IPv6 2606:4700:4700::1113 2606:4700:4700::1003 https://developers.cloudflare.com/1.1.1.1/1.1.1.1-for-families OpenDNS (Cisco-owned) OpenDNS Family […]

Categories
Antitrust Broken Internet

■ Google Search Hijacked Speedtest Keywords

Google’s “hijacked” speedtest keywords and place its products above competitors’ and present “answers” (or “direct answers”) on the search page: I assumed it was a google product (or a product that has a close connection with the google company) because the following information clearly appears on the link https://www.measurementlab.net/about/: Measurement Lab is led by teams based at […]

Categories
Linux Security Servers

Install OpenVPN, DNSCrypt and Pi-Hole – Ubuntu 20

Step by step: Install OpenVPN + Pi-Hole ad-blocker + DNSCrypt-proxy for DoH and DNSSEC Step 1. Update the system: sudo apt update sudo apt upgrade Step 2. Install OpenVPN: wget https://git.io/vpn -O openvpn-install.sh chmod 755 openvpn-install.sh sudo ./openvpn-install.sh Generated opvn file can be used with an OpenVPN client in PC or cell phone. It can be […]

Categories
Linux

Detach script/command in Linux – Easy Way !

Hot to start and detach bash script (or command) in linux from the command line: setsid nohup monitor.sh & detach script/command with custom log: setsid nohup monitor.sh &>/tmp/monitor.log & And to check the result, use a linux command that shows the process hierarchy: root@byrev:/usr/local/bin# ps -efj –forest

Categories
Linux

Kill Process in Linux by PID, Name or Group

Kill a Process in Linux from command line using kill command: kill process by name: kill $(ps aux | grep ‘process_name’ | awk ‘{print $2}’) kill process by ID kill -9 PID Kill all descendant/recursively processes The easy way to do this in a shell script is using pkill command: pkill -TERM -P 123456 where […]

Categories
Antitrust Broken Internet

Apple,Amazon,Facebook,Google – Absolute power corrupts absolutely

Monopolies harm the economy and democracy and businesses like Apple, Amazon, Facebook & Google have gotten too powerful and we risk heading towards an uncertain future without privacy and full of abuses! The recent investigation report is as obvious as can be: Amazon: The platform has monopoly power over many small- and medium-sized businesses that do […]

Categories
Linux Networks Useful

Find Available Network Interfaces On Linux/Ubuntu – 6 Quick Solutions

If you need a solution for quickly finding information about the network interfaces attached to the server or computer, then choose one of the solutions below, any of which is useful for certain technical situations. 1) using lshw , a small tool to extract detailed information on the hardware configuration of the machine: root@byrev:/# sudo […]

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 […]