≡ Menu

unix command line

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…]

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…]

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…]

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…]

Q. How do I specify MySQL SQL queries on the UNIX / 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…]