Monday, 24 November 2014

Useful Linux Commands !!

Here, we have some important commands which going to help us to work with Linux OS.

Sl. No. Activity Syntax
1 To change permission of folder  chmod  –R  777  <folder_path>
2 To change folder owner of folder chown  –R  <user_name>:<group_name> <folder_path>
3 To get the details about a user ID  <user_name>
4 To restart the VNS server service  vncserver  restart 
5 To disable firewall  service  iptable  stop
6 To unzip tar file tar  –xvf   <tar_file_name>
7 To unzip the jar file  jar xvf  <jar_file_name>
8 To copy a file from one server to another server scp  –r  <file_name/folder_name>   <Target_Machine IP>:<Target_location>
9 To remove a file  rm  -rf  <folder_name>
10 To edit a file vi  <file_name with location> 
11 To save  a file :wq!
12 To check a running process ps  -ef|grep  i   “Informatica”
13 To give access control to any host xhost  +
14 To check the RAM/CPU Utilization ps -aux 
15 To check the memory top
16 To check the free memory free  -m
17 To clear the cache form server   echo 1 > /proc/sys/vm/drop_caches
18 To Reboot the server shutdown –r now
19 To see every process running in a system ps -A
Ps -e
20 To See every process except those running as root ps -U root -u root -N
21 To See process run by user Sudi ps -u sudi
22 To find a specific port status netstat -p -nlp|grep 7001



I will updating this post going onwards...

Enjoy & Stay Well!! 

No comments:

Post a Comment

Power BI: Show Last Data Refresh on Dashboard

 To show last data refresh on Power BI report follow the below steps. 1. Open Report Query Editor Mode. 2. Clink on Get Data -> Blank...