Check These Out
Using this command you can track a moment when usb device was attached.
Tail curren postfix maillog.
Using this command you can track a moment when usb device was attached.
Use dots to cd down directories instead of having to remember all of the pesky back slashes!
Better yet, works on even and odd number of dots! Now, just estimate how far down you want to traverse.
This can be particularly useful used in conjunction with a following cut command like
$echo "hello::::there" | tr -s ':' | cut -d':' -f2
which prints 'there'. Much easier that guessing at -f values for cut. I know 'tr -s' is used in lots of commands here already but I just figured out the -s flag and thought it deserved to be highlighted :)
Creates a log of a session in a file called typescript. Or specify the file with:
$script filename
Exit the session with control-d.
Sometimes a program refuses to read a file and you're not sure why. You may have display_errors turned off for PHP or something. In this example, fopen('/var/www/test/foo.txt') was called but doesn't have read access to foo.txt.
Strace can tell you what went wrong. E.g., if php doesn't have read access to the file, strace will say "EACCESS (Permission denied)". Or, if the file path you gave doesn't exist, strace will say "ENOENT (No such file or directory)", etc.
This works for any program you can run from the command-line, e.g., strace python myapp.py -e open,access...
Note: the above command uses php-cli, not mod_php, which is a different SAPI with diff configs, etc.
Programs for locking and unlocking files and mailboxes.This package includes several programs to safely lock and unlock files and mailboxes from the command line. These include:
lockfile-create
lockfile-remove
lockfile-touchlock
mail-lock
mail-unlock
mail-touchlock
These programs use liblockfile to perform the file locking and unlocking, so they are guaranteed compatible with Debian's file locking policies.
lists files and folders in a folder with summary.