Category Archives: ssh

Find Command: Find 0 KB files & Directory | name or extension.

Run Below Command in the current directory to find 0 kb files.

We add ‘f’ option for files.

[root@linuxsysad ~]#  find ./ -type f -empty

__ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __

Run Below Command in the current directory to find 0 kb Directories.

We add ‘d’ option for Directory.

[root@linuxsysad ~]#  find ./ -type d -empty


Find file by name or extension.

We use . option to find all mp4  files in current directory.

[root@linuxsysad ~]# find . -name “*.mp4”

__ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __

We use /home/linuxsysad/  directory path to find all mp4  files in /home/linuxsysad.

[root@linuxsysad ~]# find /home/linuxsysad -name “*.mp4”


 

 

SSH login without password

[root@linuxsysad ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): PRESS ENTER KEY FOR BLANK PASSWORD
Enter same passphrase again: PRESS ENTER KEY FOR BLANK PASSWORD
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:l0G3/GrujoduLPWr7a/k7vjNcwhuF2ONI/oalNMtYVk root@linuxsysad
The key’s randomart image is:
+—[RSA 2048]—-+
| . . E |
| . o + |
| . * |
| * + |
| S * o oo |
| o..oo* .|
| o.=++ = |
| . =X=o+ .|
| +*&#=+o |
+—-[SHA256]—–+ Continue reading SSH login without password