How to check OS version in Linux:

		
	cat /etc/os-release
		

Get the CPU and memory details of Linux Server :

	
	 # CPUs : 	
	lscpu	
		
	
	 # Memory: 	
	free -h
	
			      total        used        free      shared  buff/cache   available
	Mem:            15G        161M         10G        169M        4.9G         14G
	Swap:            0B          0B          0B
		

How to get the CPU and memory consumptions by the process using top:

	
	# top 	
		# It will list all the process running with some useful info. like : 
									PID, USER, PR, NI, VIRT, RES, SHR, S, %CPU, %MEM, TIME+, COMMAND
	
	# top -p $PID  	
		# It will list all the useful info. like : up {days} days, user_count, load average
		Tasks:   total,   running,   sleeping,  stopped,   zombie
		%Cpu(s):   us,  sy,  ni, id,  wa,  hi,  si,   st
		KiB Mem :  total,  free,  used,  buff/cache
		KiB Swap:  total,   free,  used, avail Mem
		
	
	# top | grep docker  	
		# It will list some useful info. of docker like : 
									PID, USER, PR, NI, VIRT, RES, SHR, S, %CPU, %MEM, TIME+, COMMAND

		

How to check Free Disk Space in Linux :

	
	df -H  	
	
	du -H	
		

Count the files in a directory:

	

	# Search for a directory : 	
	find / f -iname "folderName"