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.
Distribution: Red Hat 9 or Gentoo 1.4 whatever I can get to work first
Posts: 105
Rep:
Linux is more messy then my room
Okay i had windows but it was messy to many files and folders that i didnt need so i went to install LFS so i could keep order, but it was taking to long and i had work to do so i just went back to RH9. Well i updated some software like python and things and i wanna compile the new kernel but my question is, does anyone know of a good place or tutorial for cleaning up linux? Like how to find out what files and folders i dont need or uninstalling software.
--does linux have a folder like windows "Program files"
-- are there drivers or stuff i could clean up
-- if i recompile the kernel do i get rid of the old one and how?
Also is there a good tutorial on permissions (not how to set them i know that stuff) like which files or directories should have what permissions? Maybe thats a security question...
try core linux (i tryed lfs but i only had a root user so it failed for stupid reasons, this distro is small (you can even amke it smaller cuse the install is done by a shell scripts that only unpackes teh basic packages, all you ahve to do is unpack teh packages taht you want and u got a real small fast and all thats needed is a kernel ull need to compile), altho i do admit the frist time i tryed it it didetn work, so i reinstalled eery package from source now it works fine
Very similar in directory structure.
I believe BSD is based on Unix, Linux is an original operating system which uses the same type of directory structure but was built without using the original Unix code.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i used to spend days deleting files out of my linux installs to make it small.
deleting all the readme's and info files and man pages, and other language
documentation.
you can find stuff like find . -name spanish -print
and in that dir there will be stuff for a bunch of different languages. you can
delete the ones that aren't for yours.
i would always have everything backed up, and when i deleted something that
messed things up, i put it back. that sort of toying used to mess up windows
pretty bad, but linux could handle it. usually i just move the files into a nearby
directory for testing.
reminds me of the old days. making a 1 floppy geoworks version. i had a 2 5 1/4
inch disk windows 3.1 install that worked. and i made an os2 2.1 1 disk boot
floppy. that took a week. i had the floppy formatted at about 83 or 84 tracks and
probably 22 sectors per track and interleaved too.
now i have the same fun making custom knoppix disks with mame and other stuff
i want. i got the knoppix cdrom image down to around 430 megs compressed, so
that left me with loads of room to jam stuff in.
no programs files directory. a few big apps like to install in /usr/lib/ which sucks.
like mozilla sometimes. small binaries for general use are in /bin and /usr/bin/.
superuser binaries are in /sbin and /usr/sbin. thats for stuff that comes with the
distro. when you compile stuff yourself, /usr/local/bin is normal.
when i'm messing with something really big, that i dont' want to mess up other stuff,
i'll put it in opt, so i won't forget about it. and i can delete it later more easily.
like if i want to compile a new version of kde or try some new wine version, that's
where it's going to go.
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
As far as a "Program Files" directory...
In most Linux distributions, the executables that are system wide for users are installed in the /usr partition. Some distros (like SuSE for example) use /opt as well. It's not quite the same thing as most Linux programs are avaialble to all users and same their per-user settings in the user's /home partition subdirectory. Directory of Linux partitions and directory is as follows:
/ -- the root partition
/usr -- the user partition where user programs and library files are stored
/opt -- not on all systems also where certain user available programs and libraries are stored
/etc, /dev, /bin, and like directories -- where system settings, programs and devices are stored (everything, even physical devices are files in Linux)
/home -- the "home" of the users' personal accounts, where all their user settings, like their desktop settings are stored. Users can also install programs there that, are theirs alone to run.
Originally posted by whansard and i made an os2 2.1 1 disk boot
floppy. that took a week. i had the floppy formatted at about 83 or 84 tracks and
probably 22 sectors per track and interleaved too.
Holy sheet! That's hardcore
When I used Linux, I used Debian, because once you get your head around dselect, it's really easy to build the system from the ground up, exactly the way you want it. I find Linux too chaotic for my liking these days, gimme my FreeBSD thanks
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
there was a dos tsr called fdread that let dos read unusually formatted floppies.
nobody could read any of my disks without that. i'm sure it drove people nuts.
i loved fdformat.exe. you could specify the tracks sectors and interleave and
such when formatting a floppy. back then floppy disks cost $1 so it was more
important to jam more stuff on a disk.
superstore had a utility called 2xon and 2xoff that enabled filesystem compression
for a floppy. i bet nobody remembers that stuff.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.