LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 08-01-2017, 08:09 AM   #46
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by hazel View Post
For most distros, the installer makes it. It checks what disks you have and constructs a permanent fstab suitable for your system. Distros that work live in ram presumably use similar methods to create their own one-off version.

Are we talking about live Mint or an installed version? For any installed Linux, the root partition is mounted on /.

UUIDs (Universal Unique IDs) are used by many distros nowadays to identify disks, as they are permanent and unique. When a filesystem is created on a partition, a random UUID is generated and stored in the filesystem's superblock.
Yes it is an installed version of Mint (rafaella it says). Superblock :-| ¿? So no /mnt/hda1 anymore ?
 
Old 08-01-2017, 08:16 AM   #47
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
It's a brand-new system, so there probably won't be any directories under /mnt. Anyway, things like CDs and pen-drives are usually mounted under /media these days. /mnt is used mostly for one-off mounts made during housekeeping operations, and the administrator decides if he wants any subdirectories there.

Superblock: a special block at the beginning of a filesystem (often with scattered back-up copies) storing any special information that the kernel needs in order to read the filesystem.
 
1 members found this post helpful.
Old 08-01-2017, 08:23 AM   #48
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
It's a brand-new system, so there probably won't be any directories under /mnt. Anyway, things like CDs and pen-drives are usually mounted under /media these days. /mnt is used mostly for one-off mounts made during housekeeping operations, and the administrator decides if he wants any subdirectories there.

Superblock: a special block at the beginning of a filesystem (often with scattered back-up copies) storing any special information that the kernel needs in order to read the filesystem.
Aha thanks for clarifying. Now next is i did some software install with the software manager. It says it is correctly installed, but there is no icon of the program, so i thought i'll make a icon (link) myself. But where is the program installed, is there a standard directory where programs are installed to?

And it goes automatically with the gui software manager, but ofcourse i want to do it on the command line too. But first i need to know where the installed programs go to . . .
 
Old 08-01-2017, 08:45 AM   #49
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
using search in the filesystem i got after 10 minutes of searching different locations of the program files. So i guess there is no particular directory for a program, it is just scattered all over the file system, some files are in /bin some in /usr/bin i see some in /usr/share and then /icons /applications /mime. Ok good to know when installing something you need to know exactly every file that is related to the program to find the files back in the filesystem, they are not in a directory with the program's name. Whoohoo it gets messy fast when installing multiple programs then, i guess...

Or maybe all the installed programs, use the /usr/share/icons/hicolor/256x256/apps directory to put their icons in, but then what if they have the same name ?¿ I go and try something out in my stonecoal english as they say here in holland.

Last edited by Jinux75; 08-01-2017 at 08:48 AM.
 
Old 08-01-2017, 08:49 AM   #50
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Jinux75 View Post
using search in the filesystem i got after 10 minutes of searching different locations of the program files. So i guess there is no particular directory for a program, it is just scattered all over the file system, some files are in /bin some in /usr/bin i see some in /usr/share and then /icons /applications /mime. Ok good to know when installing something you need to know exactly every file that is related to the program to find the files back in the filesystem, they are not in a directory with the program's name. Whoohoo it gets messy fast when installing multiple programs then, i guess...
A good package management system will keep track of these things and be able to "uninstall" the related files if required. If you're on Mint, it has a good package manager which I would encourage you to use for all installations and removals.
 
Old 08-01-2017, 08:50 AM   #51
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
One little thing that i find annoying and believe me i tried every switch i could find is to use ls and have to scroll up to see the files, is there a switch that waits until a key is pressed and go to the next page when using ls ? like ahhum, dir/p ???
 
Old 08-01-2017, 08:51 AM   #52
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Jinux75 View Post
One little thing that i find annoying and believe me i tried every switch i could find is to use ls and have to scroll up to see the files, is there a switch that waits until a key is pressed and go to the next page when using ls ? like ahhum, dir/p ???
Code:
 ls | more
 
1 members found this post helpful.
Old 08-01-2017, 08:52 AM   #53
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rickkkk View Post
A good package management system will keep track of these things and be able to "uninstall" the related files if required. If you're on Mint, it has a good package manager which I would encourage you to use for all installations and removals.
Yes it looks very shiny, but i like to also know how to do it by hand, instead of something doing it for me. Just for the fun of it, and to understand where these files go to. To get some feeling for it, i do not know how to explain it. It is just a big dream of mine to know how to apt-get it, get it ? haha

(sorry for the poor jokes)
 
Old 08-01-2017, 08:59 AM   #54
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Jinux75 View Post
Yes it looks very shiny, but i like to also know how to do it by hand, instead of something doing it for me. Just for the fun of it, and to understand where these files go to. To get some feeling for it, i do not know how to explain it. It is just a big dream of mine to know how to apt-get it, get it ? haha

(sorry for the poor jokes)
lol ... no problem. I have the same curious nature when it comes to stuff like that. As you have surmised, however, there is *perhaps* less of a uniform standard in linux than in Windows when it comes to where an application's files are stored. There are some common ones (you have mentioned a few) but no guarantees.

Again, no problem wanting to understand where things go and how they work (actually a good thing), but if your distro (Mint) has a package for a given application, I strongly suggest you install and manage via the package manager (apt or its GUI equivalent).

Cheers :-) !

Last edited by Rickkkk; 08-01-2017 at 09:45 AM.
 
1 members found this post helpful.
Old 08-01-2017, 09:14 AM   #55
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rickkkk View Post
lol ... no problem. I have the same curious nature when it comes to stuff like that. As you have surmised, however, there is less of a uniform standard in linux than in Windows when it comes to where an applications files are stored. There are some common ones (you have mentioned a few) but no guarantees.

Again, no problem wanting to understand where things go and how they work (actually a good thing), but if your distro (Mint) has a package for a give application, I strongly suggest you install and manage via the package manager (apt or its GUI equivalent).

Cheers :-) !
I will take your advise under advice. :-D

But less uniform? So there must be some uniform? the only logic i can think of would be putting files somewhere so other programs can share these files. And then there would be uniform directories to put these files in. So a program puts files in /usr/bin and other programs do the same, but what if they use the same filename, or probably they look at some version of the file ? But then you need to know exactly what files are used by a particular program if you want to, let's say change something. Or the version of different programs need to be the same. Pooh what to do.
 
Old 08-01-2017, 09:24 AM   #56
Jinux75
Member
 
Registered: Jul 2017
Location: The Netherlands
Distribution: Linux Mint, Ubuntu 20.04
Posts: 97

Original Poster
Rep: Reputation: Disabled
Well I am off, going home, see you tomorrow, for more newbie questions, thanks for all the information and help. Have a nice evening or whatever, depends where you are on the globe i think. Bye.
 
Old 08-01-2017, 09:43 AM   #57
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Jinux75 View Post
I will take your advise under advice. :-D

But less uniform? So there must be some uniform? the only logic i can think of would be putting files somewhere so other programs can share these files. And then there would be uniform directories to put these files in. So a program puts files in /usr/bin and other programs do the same, but what if they use the same filename, or probably they look at some version of the file ? But then you need to know exactly what files are used by a particular program if you want to, let's say change something. Or the version of different programs need to be the same. Pooh what to do.
Most of what you are referring to is called dependency management and is managed by the package manager. Certain applications have "dependencies" on other applications or files, similar to the Windows world's .dll files and such. The package manager is intelligent enough to verify the presence of such dependencies and only install them if they are not already present.

And yes, there is some degree of uniformity : /usr/share/applications is commonly used for .desktop files, /usr/bin for program files $HOME/.config for user space configuration files ... etc. It's just different with respect to the way Windows manages things and inherited in part, through the years, from Unix conventions.

Anyway, as you will often hear from members here, linux is not Windows, so it shouldn't be surprising that it works differently.
 
Old 08-01-2017, 11:27 AM   #58
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by Jinux75 View Post
Aha thanks for clarifying. Now next is i did some software install with the software manager. It says it is correctly installed, but there is no icon of the program, so i thought i'll make a icon (link) myself. But where is the program installed, is there a standard directory where programs are installed to?

And it goes automatically with the gui software manager, but ofcourse i want to do it on the command line too. But first i need to know where the installed programs go to . . .
You're still thinking like a Windows user. In Windows, every installed program plonks an icon on your desktop, and the desktop soon becomes crowded with rows and rows of icons. Linux program developers consider it very rude to put icons on other people's desktops without asking. It's your desktop so you put the icons there if you want them. You use them only for your favorite programs. With most desktops, you do it by right-clicking and choosing new->shortcut.

Newly installed programs are usually put into your desktop menu.

Where they actually go to? The command usually goes into /usr/bin, its libraries into /usr/lib, documentation into /usr/share/doc, and any default configuration files into /etc.
 
Old 08-01-2017, 12:20 PM   #59
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by hazel View Post
Where they actually go to? The command usually goes into /usr/bin, its libraries into /usr/lib, documentation into /usr/share/doc, and any default configuration files into /etc.
Additionally you can check where the file is run from by using the which(1) command to inform you where a command line (also terminal) call finds the executable, just in case it is not running from one of the usual places.
 
Old 08-01-2017, 02:07 PM   #60
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
apt-file in debian based distros is good for knowing about the files of a package.

$ apt-file list <packagename>

$ apt-file find <filename>

Without those there are other ways.

$ dpkg -c package.deb

or dpkg -x package name and find in the current path, one way to unzip a deb package from a certain POV. With ar -x and other routes too. But you need the .deb where apt-file just keeps a database of information. The advantage of using the package management system is that you can cleanly uninstall something in a semi-trusted way. Or at least keep track of what came from where. Baring dpkg-divert for the things that come from several sources.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So many newbie questions gadgets Linux - Newbie 3 04-02-2009 10:28 AM
a few newbie questions 46&2 Linux - Newbie 3 05-16-2004 09:41 PM
newbie questions G011um Linux - General 7 03-14-2002 09:56 PM
many questions from a newbie dirkduck169 Linux - Newbie 2 05-14-2001 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration