• Re: Linux paths

    From Avon@21:1/101 to Al on Thu Nov 12 21:18:08 2020
    On 11 Nov 2020 at 08:48p, Al pondered and said...

    ./ means current directory. Linux never looks for binary files to run in your current directory the way other OSs do, it only looks in the path. That's why you always need to add the ./ if you want to run a binary in your current directory.


    This is a basic how-to learning for me to. Thanks :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Al@21:4/106.1 to Avon on Thu Nov 12 00:56:24 2020
    Re: Re: Linux paths
    By: Avon to Al on Thu Nov 12 2020 09:18 pm

    On 11 Nov 2020 at 08:48p, Al pondered and said...
    ./ means current directory. Linux never looks for binary files to
    run in your current directory the way other OSs do, it only looks in
    the path. That's why you always need to add the ./ if you want to
    run a binary in your current directory.

    This is a basic how-to learning for me to. Thanks :)

    Here's a quick and dirty way to put your current directory on your path so these commands work the way they work on other OSs..

    PATH="$PATH:."

    This is not the linux, or unix way.. ;)

    Best if folks just use the ./ method.

    Ttyl :-),
    Al

    ... But that trick never works! -Rocky
    --- SBBSecho 3.11-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106.1)
  • From Warpslide@21:3/110 to Al on Thu Nov 12 12:01:00 2020
    On 12 Nov 2020, Al said the following...

    PATH="$PATH:."

    This is not the linux, or unix way.. ;)

    Best if folks just use the ./ method.

    Just don't tell them about: alias dir='ls -h' ;)

    Jay

    ... I like bowling. Seriously, it's right up my alley.

    --- Mystic BBS v1.12 A47 2020/10/23 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Black Panther@21:1/186 to Warpslide on Thu Nov 12 17:27:44 2020
    On 12 Nov 2020, 12:01p, Warpslide said the following...

    Just don't tell them about: alias dir='ls -h' ;)

    sudo apt install sl

    That way you know when you misspell ls on the command line. ;)


    ---

    Black Panther(RCS)
    aka Dan Richter
    Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    http://github.com/DRPanther
    The sparrows are flying again...

    --- Mystic BBS v1.12 A47 2020/11/06 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Black Panther@21:1/186 to Xenos on Thu Nov 12 23:30:48 2020
    On 13 Nov 2020, 02:06p, Xenos said the following...

    sudo apt install sl

    Doncha just love 'em trains? :D

    I sure do. I also see it a lot. ;)

    I had the same issue in dos. I didn't think typing a two or three character command would cause that many spelling issues...


    ---

    Black Panther(RCS)
    aka Dan Richter
    Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    http://github.com/DRPanther
    The sparrows are flying again...

    --- Mystic BBS v1.12 A47 2020/11/06 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Xenos@21:4/147 to Black Panther on Fri Nov 13 14:06:22 2020
    RE: Re: Linux paths
    BY: Black Panther (21:1/186)

    On Thursday, November 12, 2020 at 16:27, Black Panther (21:1/186) wrote:

    On 12 Nov 2020, 12:01p, Warpslide said the following...

    Just don't tell them about: alias dir='ls -h' ;)

    sudo apt install sl

    That way you know when you misspell ls on the command line. ;)


    Doncha just love 'em trains? :D

    A .-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
    /*\ | /\liens' /\lcove! WWIV on Linux - Taguig, Metro Manila, Philippines |
    / v \`-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ WWIV Reg. #30282 ]-=-=-=-=-=-=-=-'

    --- WWIV 5.3.0.dev-xenos
    * Origin: /\lien's /\lcove! WWIV 5 on Linux | aliens.free.net.ph (21:4/147)