"C:\Program Files" in Mint 17.3

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Instigator
Level 3
Level 3
Posts: 164
Joined: Thu May 26, 2016 8:05 pm

"C:\Program Files" in Mint 17.3

Post by Instigator »

Hi,
where can i find the directory with my programs I am using 17.3 KDE Mint?

opt, lists the programs I have added but not the already installed ones or ones from software manager.
found a stray program in usr what i also installed multibootusb in this case.
Thanks,
Andy
Last edited by karlchen on Wed Jun 22, 2016 11:00 am, edited 1 time in total.
Reason: C:\Program Files => "C:\Program Files": You have got to enclose names which hold spaces in double quotes. Windows users should know so. Of course 99,9% of them don't.

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: C:\Program Files in Mint 17.3

Post by Habitual »

terminal >

Code: Select all

whereis <program>
Linux Command Line Learning Resources

Instigator
Level 3
Level 3
Posts: 164
Joined: Thu May 26, 2016 8:05 pm

Re: C:\Program Files in Mint 17.3

Post by Instigator »

that means you need to know each of their names? what about programs not listed in the menus?
- is there a command to list every installed program?
like for example tor isn't listed in menus and installed.

Instigator
Level 3
Level 3
Posts: 164
Joined: Thu May 26, 2016 8:05 pm

Re: C:\Program Files in Mint 17.3

Post by Instigator »

guess a better question would be

are these safe?

dpkg --get-selections | grep -v deinstall

dpkg --get-selections | grep postgres

dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

dpkg -l

iv read many times never to do a command what you don't know what it does.

User avatar
Reorx
Level 11
Level 11
Posts: 3936
Joined: Tue Jul 07, 2009 7:14 pm
Location: SE Florida, USA

Re: C:\Program Files in Mint 17.3

Post by Reorx »

In a terminal >>>

Code: Select all

dpkg --get-selections > Installed_Package_List
Then open your home folder and click on Installed_Package_List
Full time Linux Mint user since 2011 - Currently running LM19 Cinnamon.

Image Image

Instigator
Level 3
Level 3
Posts: 164
Joined: Thu May 26, 2016 8:05 pm

Re: C:\Program Files in Mint 17.3

Post by Instigator »

thanks it lists loads but not "tor-browser_en-US" "tor-browser" or "tor" with the exception of that being parts of other words.
can you install a non package program? and if so is that list able?

feels like its very easy to install a program and hide it and the user never know its there? since i seem to have hidden my own file in logs.
works fine though.

The program install files are just sat in my home folder does that search not look there?
/home/andy/Desktop/andy/tor-browser_en-US/


usr and etc seems to be where a bunch are listed but unable to run them from folders isn't the menu just shortcuts?

User avatar
Flemur
Level 17
Level 17
Posts: 7522
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: C:\Program Files in Mint 17.3

Post by Flemur »

Code: Select all

echo $PATH
will show the locations of all the executables you can normally run wwithout specifying a complete path to them - just the locations (directories) they're in.

This script will show you a program name given part of the name:

Code: Select all

#!/bin/bash
#
if [ $# -lt 1 ]
then
  echo Usage: `basename $0` pattern
  exit 1
fi
echo $PATH | sed 's/^/ls -A /' | sed 's/:/ |grep '$1'; ls -A /g' | sed 's/$/ |grep '$1'/' | bash | sort
exit 0

Code: Select all

$
$ W dvd
convxdvd
dvd+rw-booktype
dvd+rw-format
dvd+rw-mediainfo
dvd-ram-control
$
$ W dpkg
dpkg
dpkg-architecture
dpkg-buildflags
...lots more
When you know the name of an executable, you can do

Code: Select all

$ which dpkg-architecture
/usr/bin/dpkg-architecture
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
Moem
Level 20
Level 20
Posts: 10090
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: C:\Program Files in Mint 17.3

Post by Moem »

Instigator wrote:feels like its very easy to install a program and hide it and the user never know its there?
Then again, you'd need a password with sudo rights to be able to do that. So it's not like any stranger who is near your computer can do such a thing.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: C:\Program Files in Mint 17.3

Post by Habitual »

Try the C:\USER GUIDE\
in mintwelcome.

Instigator
Level 3
Level 3
Posts: 164
Joined: Thu May 26, 2016 8:05 pm

Re: C:\Program Files in Mint 17.3

Post by Instigator »

Alright thanks, I'll try echo $PATH when I'm home tonight.
Hopefully it lists tor then I'll feel secure.

Thanks for your ever useful imput Hannibal :)

User avatar
karlchen
Level 20
Level 20
Posts: 11851
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: "C:\Program Files" in Mint 17.3

Post by karlchen »

Instigator wrote:that means you need to know each of their names? what about programs not listed in the menus? - is there a command to list every installed program? like for example tor isn't listed in menus and installed.
Fine. The same challenge exists on Windows as well.
"Programs & Functions" only lists the applications which have been added there by the corresponding setup programs / installers.
Windows brings along a lot of commandline executables which most users will never know about.
These commandline executables will not appear in the Windows applications menus. Much like on Linux.

On Linux Mint you can e.g. use Synaptic to list all installed software packages, no matter whether the applications appear in the application menu or not. You can right click each of the packages, select properties and list "installed files". Will be a lot of work if you try to do so for each installed software package; but handy if you just want to check for a small number of applications.

Beware:
Applications which have been installed circumventing the software management system will not be listed by Synaptic.
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

0ddity
Level 3
Level 3
Posts: 140
Joined: Wed Jul 15, 2009 6:19 pm

Re: "C:\Program Files" in Mint 17.3

Post by 0ddity »

Why can't he just browse to /usr/share/applications? Coming from windows, that is what I would consider the equivalent to the C:\Program Files directory.

User avatar
karlchen
Level 20
Level 20
Posts: 11851
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: "C:\Program Files" in Mint 17.3

Post by karlchen »

Hi, 0ddity.
Why can't he just browse to /usr/share/applications? Coming from windows, that is what I would consider the equivalent to the C:\Program Files directory.
You are absolutely free to set up any hypothesis in the world, even if it turns out to be pretty wrong in the end. :wink:
"Coming from Windows" is all right, but you should arrive at Linux at some point in time and let go of the Windows way of looking at things. :wink:

Oh, just in case no-one should have mentioned so in this thread before:
/usr/bin is the place where you will find representations of almost all installed applications.
Representation means:
+ Frequently the (only) executable file of an application / commandline tool is located here
+ Frequently the start script which launches an application is located here
+ Frequently a symbolic link to either of the 2 items named above is located here.

Cheers,
Karl
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

Cosmo.
Level 23
Level 23
Posts: 17827
Joined: Sat Dec 06, 2014 7:34 am

Re: "C:\Program Files" in Mint 17.3

Post by Cosmo. »

0ddity wrote:Coming from windows, that is what I would consider the equivalent to the C:\Program Files directory.
Do it the other way round: Try to search in Windows for paths, that you have in Linux. You will obviously already fail at the beginning.
This means: Linux and Windows are 2 completely different OS. They have more or less only one thing in common: Running a computer with the same base concept of the hardware.

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: "C:\Program Files" in Mint 17.3

Post by Habitual »

The problem, or a contributing factor among new users is the tendency to associate every thing on the system as the OSs. "in Mint 17.3" for example. ", but this sometimes is the only frame of reference they have.
"How does Linux do it?" I always found a better question than "If Windows does it this way, it should follow Linux does too.". Wrong.

You need to learn the Linux FileSystem, not where the heck the non-existent equivalent to C:\PROGRAM FILES\
"is".

Open a terminal and issue:

Code: Select all

man hier
And then "surf" on over to http://tldp.org/ and search for filesystem and learn at your own pace.

Think of Windows as a set of Standard wrenches in a toolbox.
Think of Linux as a set of Metric wrenches in a toolbox.
A good mechanic doesn't spend much time on what made the differences, he just knows there is one and he has to adjust.

Don't mistake motion for effort, son.
Buy a Linux book, Hard Copy, Tree "Killing" book on Linux.
Anything published in the last 15 years (not a stretch) devotes the first 5 or 6 chapters to "introductory topics"
such as the filesystem.
Learn those 5 or 6 chapters well.

Now, Go Fish.


Who ya calling "Hannibal"?

JEB
Level 1
Level 1
Posts: 31
Joined: Sat Apr 30, 2016 5:10 pm

Re: "C:\Program Files" in Mint 17.3

Post by JEB »

Perhaps, Software Manager > View > uncheck available packages. Select a category, only installed packages will be shown.

Hoser Rob
Level 15
Level 15
Posts: 5810
Joined: Sat Dec 15, 2012 8:57 am

Re: "C:\Program Files" in Mint 17.3

Post by Hoser Rob »

The first thing you need to get away from is the idea of a C: (or whatever) drive in Linux. The file system is organized differently, and it's not based on physical drives. It's a log based system and root (/) is the closest equivalent. To the system your drives are really just folders, but the ones you're using when you log in are protected. You can't unmount them when using them.

Here's a good explanaiton of where programs are stored in your file system:

http://askubuntu.com/questions/27213/wh ... o-things-g

User avatar
BG405
Level 7
Level 7
Posts: 1949
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: "C:\Program Files" in Mint 17.3

Post by BG405 »

I've always seen the "C drive" as a partition but that's because since the early 2000s I've always set up separate partitions for the OS, DATA, Swap and, where appropriate, a working partition (for video editing etc.). Seems this is more the Linux way even though I didn't realize it until I changed over, therefore the Linux setup made perfect sense once I'd sort-of familiarized myself with the directory structure. :)

Unless you're actually dealing with Windows systems there's no point in thinking of things in the Windows way. It's nice and refreshing!
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Dell PII 350 64MB - Puppy 4.3 & Win98-SE

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: "C:\Program Files" in Mint 17.3

Post by Habitual »

For the sick and twisted out there, open a terminal and issue:

Code: Select all

DOS='C:${PWD//\//\\\}>'
PS1="\[\033[00m\]\[\033[00m\]\[\033[01;39m\]$DOS\[\033[00m\]" 
Get you some!

Instigator
Level 3
Level 3
Posts: 164
Joined: Thu May 26, 2016 8:05 pm

Re: "C:\Program Files" in Mint 17.3

Post by Instigator »

thanks for all the posts ill read these at work tomorrow and see what sense i can make of it all.

I just want to be able to run my programs from the folders they are in not the menus

Post Reply

Return to “Newbie Questions”