≡ Menu

apple os x

scp: Do not Overwrite Existing File On Linux or Unix System

I am a new Linux user. I use scp to upload files to net-storage provided CDN company. I do not want to overwrite the existing files. How can I prevent overwriting of files when using scp command under Linux, Mac OS X or Unix like operating systems?
[click to continue…]

Linux / Unix: Use rsync Command Over FTP

How do I use rsync command to sync files to a remote host called web-42.vps running VSFTPD ftp server? Can you give me rsync ftp example for Unix like operating systems?
[click to continue…]


I'm setting up server on an Amazon EC2 compute instance powered by Suse Enterprise Linux server. I am using the following command to login into the my EC2 compute from OS X/Ubuntu desktop:

ssh -i suse-ec2-server-jp.pem root@ec2-xx-yy-zzz-yyy.compute-1.amazonaws.com

I am getting the following error:
Permissions 0440 for 'suse-ec2-server-jp.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: suse-ec2-server-jp.pem

How do I fix this problem and login using ssh command?
[click to continue…]

Linux / Unix Bash Shell List All Builtin Commands

Builtin commands are contained within the bash shell itself. How do I list all bash builtin commands under Linux / Apple OS X / *BSD / Unix like operating systems without reading large bash man page?
[click to continue…]

Linux / Unix Find Command: Avoid Permission Denied Messages

When I type find . -type d -name "foo" command I get Permission denied error messages. How do I exclude all "permission denied: messages from the find command under Linux or Unix like operating systems?
[click to continue…]

HowTo: Use pwd Command In Linux / UNIX

How do I use the pwd command in Linux or Unix like operating systems? How can I use pwd command in UNIX or Linux shell scripts for automation purpose?
[click to continue…]

Linux / Unix: Unicode and HTML Characters Lookup By Name or Number

I need to replace special characters with equivalent hexadecimal unicode under Linux or Unix like operating system. How do I list or find out unicodes for given characters?
[click to continue…]

Linux / Unix: Rsync Copy Hidden Dot Files and Directories Only

How do I use the rsync tool to copy only the hidden files and directory (such as ~/.ssh/, ~/.foo, and so on) from /home/jobs directory to the /mnt/usb directory under Unix like operating system?
[click to continue…]

Linux / Unix: curl Command Pass Host Headers

How do I send a header to my Web server (such as Nginx / Lighttpd / Apache / ISS) on a Apple OS X or Unix or Linux based system using a curl command line option for testing and debugging my web apps or server nodes behind a load balancer?
[click to continue…]

Linux / Unix ssh-keygen: Create A Host Key File

How do I create a host key file to use with my applications as I can not use system defined /etc/ssh/ssh_host_rsa_key for non-root account under Linux / Unix / Apple OS X / *BSD operating systems?
[click to continue…]