Skip to main content

Posts

Showing posts with the label FILES

How To Find Large Files and Directories in Linux with Examples with Outputs

When you're trying to clean up your filesystems and reclaim some space, one of the first things you'll want to do is to confirm the largest directories and individual files you have. This can be easily done using two Unix commands: find command and du command. Find files larger than a certain size It's very simply to find files which are larger than a specified size. The find command accepts a size parameter, and you can specify the limits for file sizes in your command line. This example finds all the files under /etc directory which are larger than 100k: root@ubuntu# find /etc -size +100k /etc/ssh/moduli /etc/ssl/certs/ca-certificates.cr /etc/bash_completio If we look at their sizes, they really are above 100k: root@ubuntu# ls -l /etc/ssh/moduli /etc/ssl/certs/ca-certificates.crt /etc/bash_completio -rw-r--r-- 1 root root 215938 Apr 10  2007 /etc/bash_completion -rw-r--r-- 1 root root 132777 Feb 19  2007 /etc/ssh/moduli -rw-r--r-- 1 root ro...

Solution : Google hosted domains Forwarding and POP/IMAP but recently this option disappeared

Email forwarding option missing on newly setup google hosted domains I am using my company g suite account there I hosted my 2 domains. I’ve been using this for several domains, and I typically create an abc@my.domain.com account and have it forward all incoming emails to my personal email account. Usually you do this in Mail settings / Forwarding and POP/IMAP but recently this option disappeared on the the google hosted domains, there is only POP/IMAP Download instead. Solution : 1st login in Admin console https://admin.google.com/ Open Apps > G suite > Gmail [See image] Now open :     Advanced settings And enable it : Automatic forwarding in side End User Access : Changes will take some time to propagate to users(wait till 24 hours) Thanks for being here : Google hosted domains Forwarding and POP/IMAP but recently this option disappeared

Understanding ls command in Linux

To list all files in a folder, open a terminal and type: command: ls You can also specify the path as part of the ls command as follows: ls /path/to/file By default, files and folders are listed in a column on the screen only displays the file name. Hidden files (files that start with a full stop) is not automatically displayed by the ls command. Instead, you must use the following command: ls -a ls --all To omit it from the list of files, you can use uppercase A instead of lowercase a as follows: ls -A ls --almost-all Specific commands like mv and cp command, the command is used to move and copy files and has a switch that can be used with commands to create a backup of the original file. These backup files usually end with a tilde (~). To omit backup files (files ending with a tilde) run the following command: ls -B ls --ignore-backups If you want a more detailed output you can use the following switch: l...