Hey Namaste,

In this article, We will learn some of the SSH commands for server operations like zip, unzip, delete and move a file from one server to another.

SSH is the best solutions to do a server-side operation in speed. So Let’s start.

SSH in simple language

Stands for “Secure Shell or Secure Socket Shell.” SSH is a method of securely communicating with another computer. The “secure” part of the name means that all data sent via an SSH connection is encrypted. This means if a third party tries to intercept the information being transferred, it would appear scrambled and unreadable. The “shell” part of the name means SSH is based on a Unix shell, which is a program that interprets commands entered by a user.

Source: www.techterms.com

 

Install PuTTY

PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.
Using PuTTY We can do SSH operation with a remote server

Download from: www.putty.org

SSH Commands

1. ZIP(Compress) Operations
1.1 Compress(zip) all files in the current directory
e.g zip filename.zip *

Note: In this, subfolders and files will note includes and you can add file name without extension.

1.2 Compress(zip)an entire directory including all sub-directories
e.g zip -r filename *

2. UNZIP Operations
Unzip specific file
e.g unzip filename.zip

3. Delete folder or file
e.g rm -rf folder-name/

4. Move files from one server to another
For this, we will use SCP command and need both Servers IP Address, Username, Password and path to file or folder

Move file from the old server (A) to a new server (B) while logged into A

e.g scp path/to/file UsernameofB@IPofB:path/to/destination

Note:
public_html/filename.zip = Server A
yuvrajkhavad@192.111.1.1:public_html/newdata = Server B

Contributing
Pull requests are welcome. Please add your ssh command submit a pull here
Please make sure to update tests as appropriate.

Have other commands in mind then please mention on the comment I will add it on a post.

Note: This post originally posted at https://zindex.co.in/play-with-ssh-secure-shell/

 


What is Trello?

Trello is a web-based project & task management tool. Using trello we can do collaborative work with a team member and clients.

In another word, trello is a whiteboard filled with lists of sticky notes, with each note as a task for you and your team. Now imagine that each of those sticky notes has photos, attachments. documents, comments, discussion and the best thing is we can keep this whiteboard with us as web browser at the office, in mobile as an app.

Trello gives us flexibility, Accountability, Visualization and Organization

Why Trello?

  • Easy-to-use, Visual Organizational Tool
  • It replaces long email threads and chat tools
  • All project information at one place
  • We can set project flow as per our requirement
  • Cross-Platform & Responsive
  • Best notification system
  • User-friendly. Anybody can use Trello
  • Trello support other application like slack, dropbox, google drive, Figma, Github etc

We can use trello for,

  • Project & Product Management
  • Marketing, Sales and Support
  • Plan a Vacation and Travelling
  • Run a Blog or Website
  • Recruiting pipeline & Interview pipeline
  • Plan a Wedding & Event
  • Plan a Birthday Party
  • Record Children’s Milestones

Trello terminology

Boards: The Virtual Whiteboard
It can be your project name, your blog name, Birthday Party name etc

Lists: Categorizing your Activities
Like Information, Todo’s, Doing, for TEST, Tested

Cards: Work and Task Name
Like Task: 1, Task: 2, Task: 3, Task: 4 etc

Trello Tips


Recently, one of our client sent us a list of WordPress website changes with FTP detail but they don’t have a WordPress admin login details.

At that time below code helps us to add a WordPress administrator user. Just add this code on function.php of the active theme.

Just delete this code after login successfully.

Happy Coding !! Feel free to ask us any questions if have.


CRUD stands for Create, Read, Update, and Delete. CRUD operations are basic data manipulation for the database. Create means insert data in the database using INSERT Query. Read means read data from the database using the SELECT Query. Update means edit data in the database using UPDATE Query. And Delete means delete data from the database using DELETE Query.

First, we create a database in MYSQL.

Create database crud;

Now, Create a table in crud database

Crud.php is the main file.  In this file, we will include data connection, insert, read, update, delete.

In this file first, we will create a database connection class named database. This class contains the database connection code. Here, we define our database host, database name, username and database password.

Crud.php

Create insert.php file for HTML Form

To insert employee’s data in the database table we need to create an Html form. This form contains 7 input fields of employees First name, employees Last name, employees Gender, employees Email, employees Birthdate, department name, and profile picture.

Insert.php

Now, Insert data into database

First, we include the database class file in the insert.php file using include function.

Include crud.php;

Then check if the condition is set to submit. Then assigning the form value in variables using mysqli_real_escape_string function to strip data from input fields.

Include this code in crud.php file

Then employees submitted data then after this data store in PHP variables.


Now, This data is stored in a database using the insert query. So, we will create an insert method  with insert query in crud.php file

In this function return true or false. If return true we print a success message and return false then we print a fail message.

Display all employees data in index.php file

We will fetch data from the database and display it in the index.php file. This file is our home page. This file will give the link of additional data. And every row of display data, we also give a link of edit data and delete data from the database.

Index.php file

Fetch data from the database

First, include database class from crud.php file in index.php file using include function.

Include crud.php;

Now, all employees data fetch from the database using a select query. So, we will write a read method with the select query in the crud.php file.

Now, this function call from the index.php file. So, add the below code in index.php.

$result = $database->read();

Using select query we select all data from the registration table. We use mysqli_fetch_array() function for fetch data from database.

Add this code in the index.php file.

Update employee data

First, we create an Html form for update data. Each row of data can be updated separately. Employee Id is passed in the URL of update.php.

In the below code, each row entry of data is fetched based on the id. The fetched data is displayed in the update form. We use read function to select data from the database and fetch result.

Html form for update

Now, we create an update function with an update query in the crud.php file.

Then after form submission, Before we will check the form is submitted or not, using if condition check update isset or not.

This code add in the update.php file.

Delete employee data using delete.php file

We delete employee data using the delete query. In the index.php file, we click on the delete link then user redirect in delete.php file with employee id in URL which one has deleted a record.

In the delete.php file, we include database class file is crud.php using include function. Then assign id which is passed in URL. Then we will call the delete method from delete.php file with id.

Now, we will create the delete method in crud.php file using the delete method. If a query is a success then return true else it returns false. If return true then we will redirect the user in the index.php file.

Just check and fill free to post a comment if have any query.


Today you left us, (August 05, 2017 ) but there is not a moment when you are not within us. Remembering you Brother

સાદો અતિ સુલક્ષણો
કાઠી કૂળરી લાજ
ખવડ જોડ્ય ખલકમાં
જડશે નહીં જયરાજ.

ઉપડ્યું હતું હજી અબઘડી
જબ્બર તારુ જહાજ
ઉતાવળે કેમ ઉતરી ગયો
જાણેય ન કરી જયરાજ

કાંઠો છાંડી કાઠી તણું
હજુતો વેતું થયુંતું વાણ
જલ્દી હશે શું જયરાજને
કે પરલોક કિધાં પરિયાણ