Project wise GemSet creation commands

Precious Info

1. For removing any folder from current directory and its sub-directory:

Run following command to see all existing folder:

find . -name folder_name -exec ls {} \;

Now run following command to remove all, after running following command you can run above command again for varification

find . -name folder_name -exec rm -rf {} \;

2. For removing any file from current directory and its sub-directories:

rm -rf 'find ./ type d -name '

3. Generate a new SSH key

ssh-keygen -t rsa -C "your_email@example.com"

4. download file or folder from remote server:
At your local machine’s terminal,
For file run following:

scp [username]@[remote_ip]:[file_name] [destination_folder]

And For Folder run following:

scp -r [username]@[remote_ip]:[folder_name] [destination_folder]

4. Find out Linux Distribution Name and Version

Here are two simple ways to find out it:
a. using release file:

cat /etc/*-release

b. lsb_release:

lsb_release -a

5. Add id_rsa.pub to remote server:

 cat ~/.ssh/id_rsa.pub

Copy you pub…

View original post 45 more words

Advertisements

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

StackOverFlow
Categories
Archives
%d bloggers like this: