Monthly Archives: September 2016

Configuring SELinux Policies for Apache Web Servers

Overview SELinux can be very troublesome when deploying web applications on Red Hat while not using the default Apache directories, for either content or logs. Your application may need to be installed in a separate directory or maybe, for other … Continue reading

Posted in Linux | Tagged | Leave a comment

Exchange New-MailboxImportRequest – Import PST files

New-MailboxImportRequest -Name “Import1” -Mailbox “Test User” -FilePath \\ServerName\SharedFolder\Imported.pst -TargetRootFolder “Inbox/Imported” The above command will create a subfolder under the Inbox called “Imported” and all PST data will be imported into that subfolder. Get-MailboxImportRequest -Status Completed | Remove-MailboxImportRequest -Confirm:$all ( delete … Continue reading

Posted in Exchange | Leave a comment

Grep through files and replace

Want to replace recursively with and also create backups of the files modified: grep -rFl “” /path  | xargs sed -i.bak ‘s/http:\/\/\/\/’

Posted in Linux | Tagged , , | Leave a comment

PS Codes

ps ax PROCESS STATE CODES Here are the different values that the s, stat and state output specifiers (header “STAT” or “S”) will display to describe the state of a process: D uninterruptible sleep (usually IO) R running or runnable … Continue reading

Posted in Linux | Leave a comment