TorryCrass.com

  • About
  • Gallery

Helpful Commands

Helpful Commands

Regex and the String Between the Colons

After working on this for a bit I wanted to make sure I posted this reminder for myself and others. Regex is a very powerful tool but the syntax is almost something of an art. I needed to identify strings of numbers between two colons. The following regex should look Read more…

By Torry Crass, 5 years ago
Helpful Commands

Setting a Static IP Monitoring Interface in Security Onion

It is HIGHLY recommended to try to find a way to use Security Onion as intended, with a passive (non-IP assigned) port for monitoring in a TAP configuration. Even so, sometimes a simple passive or tap port is just not going to cut it. One example of this is when Read more…

By Torry Crass, 7 years ago
Helpful Commands

List Locked Accounts in Linux

So you’re facing a system or security audit and you need to quickly print a list of accounts for the auditor as well as their statuses. Depending on your setup, this could be a trivial task. In other cases, especially with a passwd instance that doesn’t support the -a option, Read more…

By Torry Crass, 9 years9 years ago
Helpful Commands

Linux File Removal Error: Argument list too long

When you run a removal command in Linux with the recursive and force options enabled (rm -rf *), you don't expect to get back a failure message.  After all, YOU FORCED IT!  However, it just so happens that even with force, you can encounter a situation where the list of Read more…

By Torry Crass, 9 years9 years ago
Helpful Commands

Linux User Creation and Password Update with Simple Command Chaining

I needed to create a user, grant them super user sudo privileges, update user account passwords and expire them across a number of different servers so that the actual user could log in and be forced to change their password to a (hopefully) secure one after I was complete.  Initially, Read more…

By Torry Crass, 9 years9 years ago
Helpful Commands

Bulk Respond To Confirmation Prompts in Linux

This is quite the little zinger from time to time so I thought I would jot down a quick post on it, mainly for my memory, and for anyone else who might be looking for a similar solution. For example, when you run the following, you could be required to Read more…

By Torry Crass, 9 years9 years ago
Helpful Commands

Setting File and Directory Permissions Recursively on Linux

This is always a handy set of commands to have laying around.  There are many sites that provide the same info, but I use it often enough that I thought I would put it up to have it handy for me as well.  If you accidentally reset a bunch of Read more…

By Torry Crass, 9 years9 years ago

Posts navigation

Previous 1 2 3 4 Next
Categories
  • Business (1)
  • Helpful Commands (23)
  • Notes (2)
  • Poetry (38)
  • Quips (3)
  • Scripting (6)
  • Security (19)
  • Technical (73)
  • Updates & News (9)
Valuable Products

Affordable Linode VPS

Help Others With Kiva

0.5GB Extra Storage with OneDrive

2GB Free Storage With Dropbox

 

Copyright & Image Usage
Content and images on this site are property of Torry Crass or their respective owners where cited or referenced.
Some images used through public domain licensing and obtained via http://www.publicdomainpictures.net/

© 2010 - 2018 TorryCrass.com

  • Gallery
  • NMP License v1.0
Hestia | Developed by ThemeIsle