apt install bleachbit
Conigure belachbit to clear the history, this is a bash script clearing the gnome history:
#!/bin/bash
if cat /dev/null > ~/.local/share/recently-used.xbel
then
echo "history cleared"
else
echo "cleaning failed"
fi
find / -name ALL-PC.eml -type f -print0 | xargs -0 /bin/rm -f
Top
apt install p7zip-rar
To compress a folder run the commmand:
tar cf - directory | 7za a -si directory.tar.7z
To decompress run this command:
7za x -so directory.tar.7z | tar xf - -C target_dir
To compress files with tar and bzip2 run the command:
tar cvfj archive_name.tar.bz2 dirname/
To add files to an existing archive, use `--append' (`-r'). The command `tar --append --file=afiles.tar arbalest' would add the file
`arbalest' to the existing archive `afiles.tar'. The archive must already exist in order to use `--append' (`-r'):
tar -rj
To zip and password protect a folder run this command:
zip -9 -r -e <new_zip_folder_name> <folder_to_zip>
In above command the -9 is for best compression the -r is for folder and -e is for password.
for a in from_folder/*.bz2
do
tar -xjvf "$a" -C to_folder
done
View the *.tar.bz2 file content without extracting using option tvjf:
tar tvfj archive_name.tar.bz2
Can pipe the output to the less command to view the files one by one.
dd if=/dev/zero of=/dev/sdc iflag=nocache oflag=direct bs=4096
When finished you will get the message "dd: writing ‘/dev/sdc’: No space left on device".
dd if=/dev/urandom of=image_name bs=1 count=5G
Top
apt install trash-cli
Then in terminal as root run the command:
trash-empty
To delete the files and folders from nautilus permanently open the preferences then behavior tab and
check the "Include a delete command that bypasses trash" now when right click any file or folder you will see the delte
command that permanently will delete that one.