October 2017 – POFTUT

Monthly Archive: October 2017


Snmpwalk Command Line Examples

SNMP protocol provides useful features to monitor and configure network and server systems remotely. Monitoring features are much popular than configuration. snmpwalk is a function provided by SNMP protocol to get metrics of remote system in bulk. Get All OIDS We will first look the simplest usage of the snmpwalk command. We just provide minimum options to the snmpwalk. We will provide following options as minimum -v 2c version information...


How To Delete File and Folders Completely and Securely with sdelete in Windows?

User PC and Servers process a lot of data where some of them are secret. This data may be deleted with conventional ways but this may not enough. Because file systems generally removes file metadata but continue to hold real data. Microsoft sysinternals provides sdelete or secure delete tool which can delete file data really. More information about sysinternals can be get below. What Is Windows Sysinternal? Download As stated...


How To Install and Setup SNMP Service or Daemon For Linux

Today we will look SNMP in Linux operating systems. Simple network management protocol named SNMP is designed for getting info and setting configuration in it entities. These entities may be switch, router, PC, cabinet, printer etc. SNMP was very popular in 2000s. today it is popular too but used for information gathering. Especially monitoring which will be examined later is made today with snmp. Snmp has an index database which...


What is SMB Port and Port Number? Which Protocol Uses Port 445 and Port 139 ?

Server Message Blocks name shortcut SMB is very familiar for us. SMB is a protocol used by Windows Operating systems. SMB provides a lot of windows operating system related services over network. SMB mainly used for file sharing. SMB Port 139 or 445 New comers to the Windows ecosystem generally confuses port numbers of SMB. SMB service is provided over two ports. TCP port 139 is SMB over NETBIOS. NETBIOS...


How To Execute Shell Commands with PHP Exec and Examples

Php provides web based functionalities to develop web application. But it also provides system related scripting and execution features. exec() function is used to execute an external binary or program from a PHP script or application. In this tutorial we will look different use cases and examples of exec() function like return value, stderr, shell_exec etc. Run External System Binary or Application We will start with a simple example. We...


How To Set, Configure and Use Vim Color Scheme

Vim is very popular ans useful text editor based command line and GUI. I prefer vim because of its featured over nano etc. Vim have color scheme and highlighting features where different syntax for programming languages can be printed in a pretty and understandable form. In this tutorial we will look how to change color schemes. Reading following tutorials will be beneficial. Linux Vi and Vim Command Line Text Editor...


Linux Bash Comments Inline or Outline

Linux bash have a lot of different type of programming features. While using these features we can create very complex scripts or applications in bash. In order to take notes in a script we should use comments. Comments provides useful information for system administrators. Comment Bash In bash comments starts with # . In the following example comments can be easily seen that those comments start from beginning of the...

How To Find Files, Folders and Directories In Linux From Command Line? 0

How To Find Files, Folders and Directories In Linux From Command Line?

Linux provides different ways to find and locate files and folders. We can use GUI tools like GNOME and KDE file managers or other 3’rd party applications designed for finding files. In this tutorial, we will look at how to find files, folders, and directories from the command line. Tools As stated previously there are a lot of tools that can be used to find files and folders. We will...


How To Find and List Large Files and Directories In Linux?

One of the important job for System Administrators is finding and deleting large and unneeded files from Linux operating system. In this tutorial we will look how to find, sort and delete large and trash files from Linux distributions like Ubuntu, Debian, Mint, Fedora, CentOS and RHEL etc. Large Files Directories In Linux distributions there are some directories and paths where files generally holds a lot of disk space. These...


Linux Multipurpose Relay Socat Command Tutorial with Examples

Linux provides different philosophy and use cases from system point of view. socat is very interesting command which provides us the ability to redirect input and outputs from different type of system resources like network, file, command, socket etc. Install For Debian, Ubuntu, Mint and Kali socat can be install dpkg based distributions like below by using apt command.

Install For Fedora, CentOS, RHEL We can install for Fedora,...

Enjoy this blog? Please spread the word :)