≡ Menu

scripts

Linux / Unix: Bash Find Matching All Dot Files

A dot-file is generally any file whose name begins with a full stop. In Linux or Unix like operating system it is also called as hidden file. How do I list all dot files in my home directory?
[click to continue…]

Sysadmin because even developers need heroes!!!

Linux exec-notify: Find Out Shell Escaping Applications [ Security Monitoring ]

How do I watch or monitor applications that executed on a system and executes external programs via “bash”?
[click to continue…]

Linux / UNIX: Run Commands When You Log Out

I’ve written a Perl script that connects to our central server for me and it allows me feed data so that I make a timesheet later. How do I run my script when I log out from Apple OS X or Linux / UNIX workstation using bash shell?
[click to continue…]

Linux Disable Mounting of Uncommon Filesystem

How do I disable mounting of uncommon file systems such as hfs, udf, cramfs etc under Fedora or CentOS / RHEL / Redhat Enterprise Linux?
[click to continue…]

Linux Gnome: Add Open Terminal Here / Open Shell Prompt Here Right Click Menu To a File Manager

Question: How do I open a shell prompt or gnome-terminal at the current location while browsing directories and files via nautilus file manager? I’d like to see Open Terminal / Prompt here option added to my right click menu. How do I open command prompt in a single selected directory or otherwise in current directory?
[click to continue…]

UNIX Shell: Find Out Real Path Of File or Directory

My programs and scripts needs a real path and not a a symbolic link. How to I determine a real path of any directory under Linux / UNIX like operating systems? How do I remove references to /./, /../ and extra ‘/’ character in path?
[click to continue…]

View Installation / Uninstallation Script Inside The RPM File

Q. How do I view the pre / post installation or uninstallation script inside the RPM file called foo.rpm under Red Hat Enterprise Linux / RHEL / CentOS / Fedora / Suse Linux? How do I list the package specific scriptlet(s) that are used as part of the installation and uninstallation processes?
[click to continue…]

How To Take A Screenshot Using Linux tvtime Application

Q. I use my system as Linux digital tv and tvtime application to watch TV. How do I take a screenshots under tvtime?
[click to continue…]

How To Write First UNIX Korn Shell Script Program

Can you tell me how to write a UNIX korn shell script program? I’m new to UNIX scripting and HP-UX UNIX operating system.
[click to continue…]

Upgrade WHM / cPanel Linux server to EDGE release

Q. How do I upgrade my CentOS Linux 5.0 dedicated server to WHM / cPanel edge release?
[click to continue…]