Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

pass entire parameters in shell scripts

example bash file: save the following in a file called print.sh#!/bin/bashecho “$@”and then :chmod +x print.sh./print.sh hello worldNote that, all the parameters you pass to print.sh will be passed to echo, this because of “$@”

Tagged | 2 Comments

List sessions for a user using Siebel CLI

“list sessions for login user_name“

Tagged | Leave a comment

LAN Chat Server & Client in Ubuntu

“sudo apt-get install chatplus chatplus-server”

Tagged , , , | Leave a comment

Extract a certain file to a certain directory from a tar archive using GNU Tar

“gtar -C hobba -xvf aamr.tar aamr/1” where: “hobba” is the directory to extract to“aamr.tar” is the archive from which we’ll extract the file “aamr/1” is the file inside the archive to be extracted to the destination directory (hobba).

Tagged , , , | Leave a comment

A more convenient alternative to AIX tar; gtar

Searched everywhere just to know how to use the “tar” command to extract an archive to a certain folder instead of extracting it using the same directory structure inside, and so here are the steps: Don’t use the “tar” program … Continue reading →

Tagged , , | Leave a comment