How to find and tar files into a tar ball

To find and tar (create an archive) files into a tar ball (.tar file) in Linux, you can use the tar command in combination with the find command. Here’s the basic syntax:   $ find [directory] -name [pattern] -exec tar -czf [tarfile.tar.gz] {} + [directory]: The directory you want to search for files. [pattern]: A … Read more

How to use/run bash aliases over ssh based session

Bash aliases are only available in the current shell session, so they are not automatically available in an SSH-based session. However, you can make your aliases available in an SSH-based session by adding them to a shell startup file, such as ~/.bashrc, ~/.bash_profile, or ~/.bash_aliases. Here’s an example of how you could create an alias … Read more