Show disks and partitions
[sourcecode language=”bash”]user@linux:~$ sudo fdisk -l[/sourcecode]
Kategoria: Terminal
Linux: Get the Day before Current Date in Bash
[sourcecode language=”bash”]user@linux:~$ date +%F -d "yesterday"[/sourcecode]
or
[sourcecode language=”bash”]user@linux:~$ date +%F -d "1 day ago"[/sourcecode]
or
[sourcecode language=”bash”]user@linux:~$ date +%F -d "-1 day"[/sourcecode]
or
[sourcecode language=”bash”]user@linux:~$ date +%F –date="-1 day"[/sourcecode]
Description:
%F
full date; same as %Y-%m-%d
-d, –date=STRING
display time described by STRING, not `now’
Linux: Find Duplicate Files?
find . -type f -exec md5sum '{}' \; | sort | uniq -d -w 36`