Learn to use basic Linux commands (2)

With this post I will continue explaining basic Linux commands for newbies

kill -9 process_pid (e.g. kill -9 2344)

Process pid is unique number for each process occurs when server start (use ps x and/or ps aux command to list all active processes). The process pid is the first number on each row

pico file_name OR vi file_name (e.g. pico psybnc.conf)

This command open a file in edit mode


With this command allows you to login as admin if you are logged in as a simple user without root access


With this command you can change current logged in user password

man command (e.g. man ls)

Get info about a command from Linux help database

cat file_name (e.g. cat psy.conf)

Use this command to read the contents of a file

cp /old_path/file_name /new_path/file_name (e.g. cp /home/heavyant/psy.conf /home/ha/psy.conf)

Copy a file from one location (folder) to another (folder)

mv /old_path/file_name /new_path/file_name (ex: mv /home/heavyant/a.conf /home/ha/a.conf)

Move a file from one location (folder) to another (folder)

who OR w

Use this command to see who else is logged on the server

chmod file_name OR folder_name (e.g. chmod psy.conf 777)

Change the permissions of a file or folder (read, write, execution for user or admin)

mkdir folder_name (e.g. mkdir heavyant)

Create a new folder with given name

rmdir folder_name (e.g. rmdir heavyant)

Delete a folder

ping IP (e.g. ping

Check if given IP address is online


Check for server hard drive capacity

tail file_name (e.g. tail logs.log)

Read a file and displays the last 10 lines

locate file_name OR folder_name (e.g. locate psybnc)

Search for a file or folder


See the last commands used on the server