Tcpdump is a separate program from wireshark, however it can be used to gather network packets for later viewing in wireshark. By default tcpdump captures only the first 64 or 96 bytes of each network packet. Hence it is important to use -s parameter to capture whole packat. ...
On Unix operating systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table, allowing the process that started it to read its exit status. To be able to kill a zombie process we need to find it. The easiest way to do it is using ps command. ...
We can use fidn command in linux to change file ownership, using exec switch in find command does the trick. Below command will change ownership of the files owned by johndoe to www-data user. ...
find command in linux is pretty powerful one. To find files owned by particular user we can use -user switch in find command. ...
Sometimes we would like to remove old items from Exchange Mailbox using PowerShell instead of using Outlook. Starting from Excahgne 2007 we can do it using Export-Mailbox PowerShell cmdlet with -DeleteContent parameter. To use this cmdlet one has to be an Exchange Administrator and must have Full Access rights to the mailbox. ...
To create report with table sizes from mysql database we either need to use SHOW TABLE STATUS command or query INFORMATION_SCHEMA.TABLES. If we do not need all the columns returned by SHOW TABLE STATUS, querying INFORMATION_SCHEMA.TABLES is a better idea. ...
Sometimes we want to dump only database structures without the table data. The easiest way to do it is to use -d switch in mysqldump program ...
To check the privileges granted to MySQL user, we can simple use the command show grants. Such information is is useful for security audits or to duplicate the permissions to another user.The syntax is simpleshow grants for 'username'@'hostname' ...
Linux contains very handy command line tool called printf. It is a function that enables you to format the output. Below code snippet shows how to format integer of base 10 as hexadecimal number. ...
Below snippet shows how to convert hexadecimal string to integer. We are using the method TryParse of int class. As one of the arguments we can supply the NumberFormat. In the case of hexadecimal string we provide NumberStyles.HexNumber. ...