<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joydeep Mukherjee</title>
    <description>The latest articles on DEV Community by Joydeep Mukherjee (@joydeep999).</description>
    <link>https://dev.to/joydeep999</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F604554%2F8e77a689-0b4e-4a4a-b13e-0d935956c8f5.jpeg</url>
      <title>DEV Community: Joydeep Mukherjee</title>
      <link>https://dev.to/joydeep999</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joydeep999"/>
    <language>en</language>
    <item>
      <title>Few basic commands that may come in handy for System Engineers</title>
      <dc:creator>Joydeep Mukherjee</dc:creator>
      <pubDate>Mon, 29 Mar 2021 09:36:09 +0000</pubDate>
      <link>https://dev.to/joydeep999/few-basic-commands-that-may-come-in-handy-for-system-engineers-2jgo</link>
      <guid>https://dev.to/joydeep999/few-basic-commands-that-may-come-in-handy-for-system-engineers-2jgo</guid>
      <description>&lt;h1&gt;
  
  
  Process related
&lt;/h1&gt;



&lt;p&gt;&lt;code&gt;ps -ef|egrep "java||httpd||nginx"&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 Or&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ps -ef|grep java&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 (Any process that you want to grep)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 ( To check process utilization)


```kill -9 pid```

 ( to kill a process)


```kill -3 pid```

 (to take heapdump)


```kill -9 $(lsof -t -i:port_number)```




```systemctl status/stop/start service_name```




```service service_name stop/start/status```




# Logs related



```tail -100f access.log/error.log```




```tail -100f SystemOut.log|grep -i "hung"```

 (to check out the hung threads)


```more access.log/error.log```

 ( to check the previous logs)

# FileSystem cleaning



```df -kh /directory_name```




```du -sh *|sort -n```




```find file_path -type f -size +100M -mtime +90 -exec rm -r{} \;```



# SSL related

To import a java certificate:-


```./keytool -import -keystore key_store_path -trustcacerts -file cert_file.cer -storepass changeit```



To create a new java keystore:-


```./keytool -genkey -alias alias_name -keyalg rsa -keysize 2048 -keystore name_keystore -storepass changeit

To raise a Cert request or raise a csr:-
./keytool -certreq -file cert_file_name.csr -keystore name_keystore -storepass changeit```



To view a certificate file using openssl:-


```openssl x509 -text -in file_name.cer```

 /


```openssl x509 -text -inform DER file_name.cer```



To create a new self signed certificate using openssl:-


```openssl req -x509 -days 365 -nodes -newkey rsa:2048 -keyout file_path_key_name.key -out file_path_cert_name.crt```



# Network Rekated



```netstat -at/au```

 (to show ports open for tcp or udp)


```curl -Ik URL```

 (to check header information and return code)


```nslookup ip_address/domain```


















&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
  </channel>
</rss>
