Admin, Bash, Direct Admin, IT Help Desk, Linux, Linux CLI
There easy way to find large folders on Linux is to use du command. See the example commands: sudo find / -xdev -type f -size +1000M -exec du -sh {} \; The above command list all files larger than 1000M with it size. du -h -x / | sort -h -r | head -10 This command...
Admin, Backup, DevOps, Linux, Unix
The most popular way of backing up your Linux system are rsync and dump. The difference is that when using dump you need to work on a full image, where the rsync allows you to access individual files. Backup using RSYNC command From your local machine: rsync -chavzP...
Linux, Networking, WSL/WSL2
By default, you have no access to windows network directories. Those are not visible or accessible unless you will mount them in /mnt/somedir folder. Firts lets crete a folder with in mnt directory that will be then mounted to our network drive. sudo mkdir...
IT, Linux, Windows, WSL/WSL2
Let say that we want to cd to a windows explorer directory and we don’t want manually to rewrite all the backslashes. We could write a bash cmd which does just that. cd $(echo ‘C:\laragon\www\docker\phpfpm-mysql-nginx’ | sed ‘s/\\/\//g’ |...
IT Help Desk, Linux, Mac, Networking, Windows
If you think that your network connection have an issue, and you don’t know what cause the issue, you can run some simple commands to exclude some common problems. If you think that the problem is caused by your network card, you can run a simple ping command...