≡ Menu

unix command line

Unix / Linux Shell: Get Third Field Separated by Forward Slash (/) Delimiter

I'm writing a shell script for automation purpose. The output the path of the current working directory is stored in $PWD or it can be obtained using the pwd command. How do I find out find out 3rd field separated by the forward slash (/) delimiter using $PWD under Unix like operating systems?
[click to continue…]

Howto: Send The Content Of a Text File Using mail Command In Unix / Linux

I'd like to send an email with the content of a text file using mail command in Unix / Linux operating system. How do I do it?
[click to continue…]

UNIX Command Line Tools For MS-Windows XP / Vista / 7 Operating Systems

I wish I had access to one of those nifty UNIX command-line tools under MS-Windows Vista or XP operating systems. How do I access UNIX command line utilities under Windows with out using virtualization?
[click to continue…]

Copy Shell Prompt Output To Linux / UNIX X Clipboard Directly

Q. How do I copy output of command to Linux Gnome clipboard? How do I send files directly to X Windows clipboard from a shell prompt? How do I insert command line output or files contains into the clipboard?
[click to continue…]

MySQL/MariaDB: Run SQL Queries From A Shell Prompt / Command Line

How do I specify or run MySQL or MariaDB SQL queries on the UNIX or Linux command line?
[click to continue…]

Shutdown UNIX Command

How do I shutdown or poweroff a UNIX computer system from a shell prompt?
[click to continue…]