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

nixCraft → Howto → AIX → How to check running process in Unix using command line How to check running process in Unix using command line

To check the running processes on an AIX system, you can use the ps command. Here’s an example:   $ ps -ef This command will show a list of all the running processes and their status information. The output includes the following columns: UID: the user ID of the owner of the process. PID: the … Read more