Friday, 28 August 2020
How to Permanently Delete your Trash Files using Terminal Linux
Sometimes when you move your files to Trash, it is not permanently deleted from the system. In order to remove it completely, you can follow this step below.
In this tutorial, I have access to the server to delete the files from my local PC.
# Navigate to server from your local PC. I only have normal user permission access to the server known as HPC3.
novopc4@novopc2:~$ ssh app_user@hpc3
#Put in your access password (xxxxx)
app_user@hpc3's password: xxxxx
Last login: Fri Aug 28 09:17:13 2020 from novopc3.local -bash: /opt/sge/novo/common/settings.sh: Permission denied
# Next, you can access using "su root" to get permission for deleting files later
app_user@hpc3:~$ su root
# Granted the password again (xxxxx) --ask root password from your admin Password: xxxxx
Note: now u login as a root, only root can have permission to delete files in the server
# Access to your files thrash location, you need to "cd" the location
root@hpc3:~# cd /export/home/hamidah/.local/share/Trash/files
# list out the files in your Trash using "ls" command root@hpc3:/export/home/hamidah/.local/share/Trash/files# ls
# remove permanently your selected Trash directory related to files, root@hpc3:/export/home/hamidah/.local/share/Trash/files# rm -r *
# remove permanently your selected Trash directory related to expunged, root@hpc3:/export/home/hamidah/.local/share/Trash/expunged# rm -r *
#Please note that if your are accessing your server as a owner file, you may straight away delete your files using
sudo rm -rf /export/home/hamidah/.local/share/Trash/files/*
Subscribe to:
Post Comments (Atom)
-
Sometimes when you move your files to Trash , it is not permanently deleted from the system. In order to remove it completely, you can foll...
-
This week, I worked with the Solve-RD platform (for rare diseases). My PhD works on utilizing whole-exome sequencing trios dataset related...
-
Today lesson about on how to update R version inside the R docker When i ran a docker for R, the new package need the R version of 3.6....
Ohhh, this is how to do it. Thanks for the sharing.. :)
ReplyDelete