Check These Out
$ secret_command;export HISTCONTROL=
This will make "secret_command" not appear in "history" list.
This version eliminates the grep before the awk, which is always good. It works for GNU core utils and ensures that the date output of ls matches the format in the pattern match, regardless of locale, etc.
On BSD-based systems, you can easily eliminate both the grep and the awk:
find . -maxdepth 1 -Btime -$(date +%kh%lm) -type f
Usage:
$ mydir=/very/long/path/to/a/dir
$ cd mydir
I often need to cd where no man wants to go (i.e. long path). by enabling the shell option cdable_vars, I can tell cd to assume the destination is the name of a variable.
-depth argument will cause find to do a "depth first" tree search, this will eliminate the "No such file or directory" error messages
Many sites with Flash video players will download video files to /tmp on Linux, with temporary filenames like "FlashbGTHm4". These will often play in mplayer, totem, or other movie playing software. You must first navigate to a video page, let it start loading, and then pause playback.
Using this command you can track a moment when usb device was attached.
-k (kill option ) . To kill all processes accessing this port
XX is your device partition number like /dev/sdc1 .
to see how many inodes your partition have type:
$ df --inodes (or df -i)
Default formatting with ext4 would create small inode count for the new partition
if you need big count of inodes is the fstype news the correct one.
in debian you can see which fstype exists as template in:
$ vim /etc/mke2fs.conf
if you format default ext for a partition size with 1TB you would get 1 Million inodes (not enough for backupStorages)
but if you format with fstype news you would get hunderd of millions of inodes for the partition.
you have tune
$/etc/sysctl.conf
also with following sysconfig parameters
$ fs.file-max = XXX
$ fs.nr_open = XXX
where XXX is the count of max inodes for whole system