List of virtual adapters your Virtual Linux can access

Hello , Its me again Raja and this time I came up with one more new post. I have been through interesting problem. As many of you know Virtual Box , sometimes even though we enable new adapter and configured IP in conf file it wont comes up. Everything seems fine , we have enabled adapter and configured name and IP for it but still it wont come up. Simple solution : How many adapters your VM...

Linux : full path of a file

Hello , Sometimes we need to have full or absolute path of file. And most of the times we used to pwd + filename manually. But with google search I came across a command named as readlink. readlink -f filename.txt that will print complete path of filename along with filename append to it. linuxmen@linuxmen-fresh:~/test/test1$ readlink -f ex4.js /home/linuxmen/test/test1/ex4.jslinuxmen@linuxmen-fresh:~/test/test1$...

Install R Programming Language in Ubuntu

This post describe about installation steps for R- Programming Language. For Windows we have direct exe file but for Linux its in a single click way but you can still do it below commands easily. Open your terminal and type below commands as root user. echo " deb https://cloud.r-project.org/bin/linux/ubuntu xenial/ deb https://cloud.r-project.org/ trusty-backports main restricted universe"...

JVMMON help commands

Hello , jvmmon is an excellent tool for JBOSS administrators and please find below list of commands for jvmmon  Print commands: __________________________   print arenastat                             - Prints brief arena statistics   print arenastat full                ...

Python Object reference well explained with list

Assume you have a list and you want to make exact copy of the list. What command you will use in python to copy a list from another list. I used List1=List2 and List1 got copied as exactly as List2 but what happen internally is they have shared command object reference location. Dont believe ? then lets try and try to see both lists location with id function id() I mean do as  id(List1)...

How to get full application propery reports by using jvmmon ?

Hello , Let come straight to the point. If you want to see right now with what properties your Jboss application servers are running , Please type jvmmon and choose current PID of your JBOSS process. Then type print system properties It will flood your stdout , copy and paste it in a file and you can use to analyse. else you can save it to a file in your system. $ print to file file = /tmp/fromjvmmon $...

Suspended Jobs vs Running jobs in Linux

Background Job : A job which is running background in the same shell. You can use bg command to see any background jobs. Foreground job : A Job which is running in the same shell right before your eyes. Suspended Job : Its a stopped/pause job but you can resume their running. Let me explain with example very clealy virt00# sleep 180 ^Z zsh: suspended sleep 180 virt00# jobs [1] + suspended ...

Deny SSH access to particular users

We all know SSH is very famous and the best service for remote access. Today I am going to tell you how to block or allow only particular users or group from SSH access. open sshd_config file as per your environment in Debian vim /etc/ssh/sshd_config Then add below line to enable access for only below users AllowUsers username1 username2 to deny access for only below users add a line as DenyUsers...

How to see IOWAIT in Linux

Hello , You can use sar command. in Ubuntu you can install it with sudo apt-get install systat and enable data collecting sed -i 's/ENABLED="false"/ENABLED="true"/' /etc/default/sysstat start service with  /etc/init.d/sysstat start To see I/O latency type command as sar 1 1 that means it will give two responses with 1 sec as interval. Example : root@virt01:~# sar 1 3 Linux 3.19.0-42-generic...

grep: unknown device method

Today while using grep command via rundeck I was through grep: unknown device method error. And the reason is due to I am having ' - ' in my search pattern I was through this error. I mean search includes grep "-search.this" /path/to/file Then you may get error with grep. So remove ' - ' in pattern and repeat your search. grep "search.this" /path/to/file Hope that helps. ...

Uploading files to FTP/SFTP using CURL

Hello, Today I am writing below article which can help you to upload files to SFTP/FTP by using CURL. Ok why we need that ? Let me tell explain!! How we login into SFTP/FTP ? [root@virt03 test]# sftp 192.168.56.110 Connecting to 192.168.56.110... root@192.168.56.110's password: sftp> ls anaconda-ks.cfg       nodes                 post-install...

List the installed RPMs by date of installation in CentOS/RHEL 6.x

How to list  the installed packages on date wise Command is :  #rpm -qa --qf '%{INSTALLTIME} (%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n ...

How To Configure VSFTPD With TLS/SSL On RHEL/CentOS 6.x and How To Connect Secure VSFTPD(TLS/SSL) in Heterogeneous Environments Using Client Programs. (Part..A)

Traditional FTP is rather insecure. When you login, your username and password are transmitted in clear text, raising the possibility of your credentials being 'sniffed' by a malicious person. Fortunately there's an easy answer to this. You can quite easily configure your vsftpd server...