Results 1 to 4 of 4

Thread: Command confusion

  1. #1
    Junior Member registered user
    Join Date
    Sep 2006
    Posts
    15

    Command confusion

    There seems to be a conflict between Unix and Linux when it comes to commands.
    I reading a book on Unix Shell Programming and when I try it out on Knoppix, certain commands do not work, e.g.

    $who am i
    $ls *p (although $ ls p* works)
    $ls [aeiou]*
    $ls a?n

    Why is it so? Is there something else called "Linux Shell programming".

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: Command confusion

    Quote Originally Posted by horizon981
    Why is it so?
    welcome.

    I'm not an expert at shell programming (have been in past lives but not for Linux). Linux is actually the name of the the OS Kernel, the rest of the tools are from the GNU library. You might want to look up what the TLA GNU stands for. On good place to start is here. There are also several somewhat different shells provided, and of course there would be no reason for multiple shells if they all looked and ran the same. And yes, the world and particularly the web is filthy with Linux documentation (you do know how to use Google, don't you?)
    ---
    Verifying of md5 checksum and burning a CD at slow speed are important.

  3. #3
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    117
    Actually, these commands and options which you have listed all work as expected. I have just verified them again, with the exception that "who am i" should be one word: "whoami".

    You probably think they didn't work because you executed them in a directory that doesn't contain many files and so the ls commands did not return anything. Try cd /usr/bin and do the commands again. Lots of files to be found there.

    Regards.

  4. #4
    Junior Member registered user
    Join Date
    Sep 2006
    Posts
    15
    Yes!!
    Thanks a lot!!

Similar Threads

  1. help with the ln command
    By Tuxgrrrl in forum General Support
    Replies: 5
    Last Post: 02-08-2007, 10:32 AM
  2. KDE package confusion
    By Durand Hicks in forum General Support
    Replies: 2
    Last Post: 04-08-2004, 05:50 PM
  3. Which command is the right one?
    By darkwid in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 04-01-2004, 11:07 PM
  4. ATI grafics + nForce mobo = total confusion
    By heffeque in forum Hardware & Booting
    Replies: 12
    Last Post: 01-07-2004, 08:31 AM
  5. NFS Confusion on home PC
    By bsaunders in forum General Support
    Replies: 2
    Last Post: 11-24-2003, 03:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI picture

OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI

$195.00



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED picture

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED

$999.99



PfSense/OPNsense 14x1Gb, 8-Core, 8GB RAM, 80GB SSD, AES-NI, QAT (Lanner FW-7573) picture

PfSense/OPNsense 14x1Gb, 8-Core, 8GB RAM, 80GB SSD, AES-NI, QAT (Lanner FW-7573)

$149.00



Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN picture

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN

$229.99



Palo Alto PA-220 Next-Gen Firewall 520-000309-00J picture

Palo Alto PA-220 Next-Gen Firewall 520-000309-00J

$40.00



OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC picture

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC

$175.00



Check Point 1590 Firewall & w builtin WiFI and builtin LTE sim slot picture

Check Point 1590 Firewall & w builtin WiFI and builtin LTE sim slot

$95.99



Unfi Security Gateway Pro picture

Unfi Security Gateway Pro

$170.00