Articles for February 2013

Copy file to remote computer on Centos

Remote to local copy

#scp -P 22 remote_IP:/home/myfile.gz . (. meaning local current folder)

Local to remote copy

#scp -P 22 myfile.gz remote_IP:/home/

 

FOLDER COPY

 

#scp  -r -P 22 /folder/name/* remote_IP:/home/

Loading

How do I kill process in Linux?

Kill process in Linux or terminate a process in UNIX or Linux systems

Kill command works under both Linux and UNIX/BSD like operating systems.

1.   First, you need to find out process PID (process id)

Use ps command or pidof command to find out process ID (PID). Syntax:
ps aux | grep processname
pidof processname

Loading

How to Format a Linux Disk

Instructions Set Up a New Partition

1. Open a terminal window and log in as root:

$ su (or “sudo su” on some distributions)

2. Find out the name of your hard drive. To do this, enter the following from the command prompt as root:

# fdisk -l

Loading