Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can't delete files in my Slackware, i tried three times, i select the files, then SHIFT+DELETE, and the notification told me the file deleted, but when i go to the root of my filesystem, it still:
0 B free of 2.5GiB (100% used)
I have checked the trash folder, ~/.local/share/Trash/files, /.Trash-0, /.local/share/Trash/files, all are empty
I don't know about whare your trashed files go, but when you delete from the command line using "rm", they're gone for good (they are actually deleted, not moved to a trash directory).
With all due respect, do you know exactly what you are doing? I'd be extremely wary about just clearing files out, especially those from folders like /boot.
With all due respect, do you know exactly what you are doing? I'd be extremely wary about just clearing files out, especially those from folders like /boot.
Yes, i know what i am doing,i am using custom kernel, so the /boot files are useless, btw, i will try to remove kernel modules using rm -R later
EDIT: rm command works, it free up my disk space, but where is my previously "deleted" file? how to actually delete them?
Thanks.
Last edited by hopkinskong; 08-05-2011 at 03:16 AM.
As other LQ members have stated: once you use the 'rm' command then the files are unlinked/removed. You can sometimes recover files with other utilities but be forewarned that you cannot always recover without due effort.
(Linux is Not Windows) Refers to the GNU/Linux OS and various Free & Open-Source Software (FOSS) projects under the catch-all name of "Linux".
If you wish to learn what a command does then use 'man command' from the 'cli'. So 'man rm' will explain;
Quote:
rm - remove files or directories
SYNOPSIS
rm [OPTION]... FILE...
DESCRIPTION
This manual page documents the GNU version of rm. rm removes each specified file.
By default, it does not remove directories.
If the -I or --interactive=once option is given, and there are more than three
files or the -r, -R, or --recursive are given, then rm prompts the user for whether
to proceed with the entire operation. If the response is not affirmative, the
entire command is aborted.
Otherwise, if a file is unwritable, standard input is a terminal, and the -f or
--force option is not given, or the -i or --interactive=always option is given, rm
prompts the user for whether to remove the file. If the response is not affirma-
tive, the file is skipped.
OPTIONS
Remove (unlink) the FILE(s).
-f, --force
ignore nonexistent files, never prompt
-i prompt before every removal
-I prompt once before removing more than three files, or when removing recur-
sively. Less intrusive than -i, while still giving protection against most
mistakes
--interactive[=WHEN]
prompt according to WHEN: never, once (-I), or always (-i). Without WHEN,
prompt always
--one-file-system
when removing a hierarchy recursively, skip any directory that is on a file
system different from that of the corresponding command line argument
--no-preserve-root
do not treat `/' specially
--preserve-root
do not remove `/' (default)
-r, -R, --recursive
remove directories and their contents recursively
-v, --verbose
explain what is being done
--help display this help and exit
--version
output version information and exit
By default, rm does not remove directories. Use the --recursive (-r or -R) option
to remove each listed directory, too, along with all of its contents.
....
Just a few links to aid you to gaining some understanding;
As other LQ members have stated: once you use the 'rm' command then the files are unlinked/removed. You can sometimes recover files with other utilities but be forewarned that you cannot always recover without due effort.
(Linux is Not Windows) Refers to the GNU/Linux OS and various Free & Open-Source Software (FOSS) projects under the catch-all name of "Linux".
If you wish to learn what a command does then use 'man command' from the 'cli'. So 'man rm' will explain;
Just a few links to aid you to gaining some understanding;
The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
yes, linux is not windows, but i just want to know how to COMPLETLY DELETE my files?
yes, rm is a way, but how do i remove a file permanently using Dolphin?
And where are my files i deleted? I am not going to recover it, i want to COMPLETLY DELETE it FROM THE DISK to REDUCE my harddisk space, cuz it still using my space now!
EDIT: I think u have misunderstand me:
Quote:
previously "deleted"
It refers to the files that i deteted using "SHIFT+DELETE", it still using up my harddisk space, not rm command
Thanks
Last edited by hopkinskong; 08-05-2011 at 10:53 AM.
If you use the rm command then it unlinks the file so the space becomes "free", in the sense that it is available for overwriting. It makes no odds as to whether the file is physically deleted or not. If you are trying to remove sensitive information then consider using the shred command.
If you use the rm command then it unlinks the file so the space becomes "free", in the sense that it is available for overwriting. It makes no odds as to whether the file is physically deleted or not. If you are trying to remove sensitive information then consider using the shred command.
So how to "free" up my space, cuz my "space" won't "free" up when i use SHIFT+DELETE, the files have disappeared in the folder, but the space still won't "free" up, i can't add new things to my harddrive because it is full!
As you said in your previous posts that you have deleted the file from the location but system still shows that the partition is 100% full. You checked if the files are there in trash but they were not there.
Option that you can go with is run find to look for those files (suppose they were .doc or .pdf files) and then delete them. Command you can use is:
Code:
find / -name *.doc -print
The above command will print the files. Check and confirm if these are the files you want to delete. If yes, then run the command mentioned below:
Code:
find / -name *.doc -print -delete
Fyi: I tried this on my Ubuntu 10.04 and CentOS 5.5 and shift+delete does delete the file permanently but both of them uses nautilus not dolphin. I will try on Linux Mint 10 and will let you know if it works the same way.
As you said in your previous posts that you have deleted the file from the location but system still shows that the partition is 100% full. You checked if the files are there in trash but they were not there.
Option that you can go with is run find to look for those files (suppose they were .doc or .pdf files) and then delete them. Command you can use is:
Code:
find / -name *.doc -print
The above command will print the files. Check and confirm if these are the files you want to delete. If yes, then run the command mentioned below:
Code:
find / -name *.doc -print -delete
Fyi: I tried this on my Ubuntu 10.04 and CentOS 5.5 and shift+delete does delete the file permanently but both of them uses nautilus not dolphin. I will try on Linux Mint 10 and will let you know if it works the same way.
I tried to updatedb then locate that file, but i can't find it anymore, it just like that file has disappeared but it still using up your hardrive space
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.