Tag: unix

Linux and Unix chown and chmod command security problem illustrated

The chown command change file owner and group. The chmod command change file mode (bits) i.e. permission. A wrong permission can create problems on Linux or Unix-like system. It is clearly illustrated in this comic. chown and chmod Credit: turnoff.us You may like these articles: shadowsocks 500 error (sloved) How to Install Jupyter on an […]

vim-plug: A beautiful and minimalist vim plugin manager for Unix and Linux users

A vim plugin manager is a must for any die-hard vim user. You can find a few option available out there. My personal favorite is vim-plug which is a beautiful and minimalist plugin for vim. Let us see how to install and use this plugin on Linux or Unix-like system. Installation Naturally, you must have […]

20 Unix Command Line Tricks – Part I

20 Unix Command Line Tricks – Part I

Let us start new year with these Unix command line tricks to increase productivity at the Terminal. I have found them over the years, and I am now going to share with you. Deleting a HUGE file I had a huge log file 200GB I need to delete on a production web server. My rm […]

Find the oldest file in Unix or Linux file system

So I wanted to know the oldest file on my Debian Linux box. find / -type f -printf ‘%T+ %pn’ | sort | head -n 1 Here is an another example for /etc/ find /etc/ -type f -printf ‘%T+ %pn’ | sort | head -n 10 Find the top 10 oldest file in a directory […]

ssh_scan: A SSH configuration and policy scanner for Linux and UNIX server

The SSH (“Secure Shell”) protocol is a method for secure remote login from one system to another. Sysadmins and users use a secure channel over an unsecured network in a client-server architecture format for connecting an SSH client with an SSH server. Security ssh server is an important task. There is a tool called ssh_scan […]

Linux and Unix nload App: Monitor Network Traffic and Bandwidth Usage In Real Time

If you want to monitor network throughput on the command line interface, use nload application. It is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in and outgoing traffic using two graphs and provides additional info like total amount of transferred data and min/max network usage. You […]

15 Useful Linux and Unix Tape Managements Commands For Sysadmins

Tape devices should be used on a regular basis only for archiving files or for transferring data from one server to another. Usually, tape devices are all hooked up to Unix boxes, and controlled with mt or mtx. You must backup all data to both disks (may be in the cloud) and the tape device. […]

How to protects Linux and Unix machines from accidental shutdowns/reboots with molly-guard

Oops! I did it again. I thought I was logged into my home server. Turns out I rebooted the db server. Another my not so favorite is typing “shutdown -h 0” into the wrong terminal. I know a few people who have admitted to doing that here. My anger that can’t be contained Is there […]