Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I recently reformatted my external to fat32 from ntfs and backed up the contents of it onto my laptop's hard drive (around 130 GB). After re-formatting I moved the files back to my external and deleted the files off my laptop but it still says I only have about 33 GB of free space when I had around 160 GB or free space before backing up my external's data.
I'm using Ubuntu 9.10, is there any "recycle bin" type of thing which I can empty?
Here is the philosophy behind:
When we delete (normal remove) the file goes or is moved to the trash (recycle bin) it is not yet destroyed, therefore the disk space is not freed.
To regain the space you must completely delete the file. Under Linux, usually it is enough to do any of the following:
a) By Terminal: cd to /home/username. If 'ls -a' does not show the 'Trash' folder it is because the system holds it inside the '.local' (dot, local) folder. So you must issue command: 'cd ./.local' (note my two dots) then issue again 'ls -a', if 'Trash' is not listed there should be a folder named 'share'; cd into that, 'cd ./share' (only one dot), 'ls -a' again. This time 'Trash' folder should be there. If you wanted to delete completely its contents (it will refuse deletion of some files owned by separate username) then you must first own everything inside. Do this:
schulte3@host--$ chown schulte3:schulte3 -R ./Trash [assuming 'schulte3' is your username] Then you can now issue removal of files.
schulte3@host--$ rm -fR ./Trash/* [or if you are inside Trash folder, do this--]
schulte3@host ~/.local/share/Trash --$ rm -fR *
b) By Dolphin (File Manager): Goto View, set 'Show Hidden Files' On, then browse into the Trash folder as described above, right click and Delete. Again if permissions complain you will need to 'chown' everything first, for this purpose you can do as described above by opening a terminal in the folder.
Note: If you have deleted it running as 'root' your home folder should be at /root, there you can execute the same procedure.
In some distros there is a universal 'Trash' folder listed in the root (/) directory, try examine your root directory: 'ls -a /' see if you find one.
Check back how you fared.
Hope it helps.
Last edited by malekmustaq; 11-20-2009 at 11:09 AM.
If nothing else makes sense you might also want to check the Linux file system for errors. If you recently had any problems causing a sudden reboot then you might have some orphaned files or free space that aren't being included in the available / allocated space. I'm assuming that your free space problem is on the Linux file system and not the external drive. You didn't say exactly.