Find and Delete log files on a linux system 1

Find and Delete log files on a linux system

Find and Delete log files on a linux system. Think before you act.

 

Mount disk and install grub boot loader 2

Mount disk and install grub boot loader

Mount disk and install grub boot loader

 

Delete all lines of a file containing a regex pattern using sed 3

Delete all lines of a file containing a regex pattern using sed

Delete all lines of a file containing a regex pattern using sed. For example you can delete all commented lines of a default configuration file. Take a look on my basic regex cheat sheet  

 

Replace a string with a new one in all files using sed and xargs 4

Replace a string with a new one in all files using sed and xargs

Replace a string with a new one in all files using sed and xargs

     

comment specific line using sed command 5

comment specific line using sed command

Comment specific line using sed command can be used to configuration files …

 

Import large .sql file into MySQL database 6

Import large .sql file into MySQL database

Should be used for really huge database imports like tens of GB … Note: remember to navigate to the directory where your .sql file lives so you can use source on it later …

Note: if you’re not sure what these options do, please, do some research  first.

   

Copy multiple files via ssh and preserve permissions and ownership 7

Copy multiple files via ssh and preserve permissions and ownership

Copy multiple files via ssh and preserve permissions and ownership. Creating a tarball on the fly and pipe its output through ssh afterwards extracting the files from the tarball will let us speedup the uploading times because the stream of data is continuous through the network and therefore will be done in one single connection. […]

Find world writable files on a Linux system 8

Find world writable files on a Linux system

Discover world writable files (aka with permission 777) will help you sometimes find out which files you missed to secure from your user’s eyes.

If you don’t understand Linux file permission bits you should read this

Online #sysadmin tools 9

Online #sysadmin tools

IPduh IPduh is a set of Internet Forencics and Troubleshooting Tools made to work Together. IPduh may be used as an Internet Forensics Search Engine or a General Purpose Search Engine. Smart Humans and Aliens researching the internetz on Earth Love IPduh.   Download test files from thinkbroadband.com thinkbroadband.com Download at full speed 10, 20, […]

How to install mod_security for Apache 10

How to install mod_security for Apache

regards, @specktator