Tips: Unix

Display available space on file system

df -h

Display number of kilobyes used by each subdirectory

du -h

du -sh (summary)

Find

Find all files that starts with pro

find . -name pro\*

Groups
Primary group: group to which an id belongs-mainly for access
Netgroup: group containing members to access/perform operations on a machine

Get members in a netgroup:

getent netgroup fg_UP20_dev_users

View netgroup on a machine:

bash-4.2$ cat /etc/passwd-
$ grep @ /etc/passwd

Get PID of process running in a port 

netstat -anp | grep 8080 (get pid)

Get Process Details

ps -aux | grep pid

stay tuned..

Advertisements

About shalishvj : My Experience with BigData

6+ years of experience using Bigdata technologies in Architect, Developer and Administrator roles for various clients. • Experience using Hortonworks, Cloudera, AWS distributions. • Cloudera Certified Developer for Hadoop. • Cloudera Certified Administrator for Hadoop. • Spark Certification from Big Data Spark Foundations. • SCJP, OCWCD. • Experience in setting up Hadoop clusters in PROD, DR, UAT , DEV environments.
This entry was posted in Unix and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s