Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).
RSS cloud
Jump to:

lec # wk 10 File Attributes - Square Bracket command external or internal

1 of 390 articles shown, currently no other people reading this forum.
From: Christopher M.
Date: Tue 9th Jun 2020, 5:15pm


On my Ubuntu Linux system, the commands [ and test both exists (now) in /usr/bin, but are not links 
to each other (and different sizes).  Interestingly  'man test'  provides the online documentation 
for both.  On macOS /bin/[ and /bin/test  are the same binary (but still not linked ?).

On Linux, you can see all the bash builtin commands with    man bash-builtins
on macOS with  man builtins

Included in these builtins, familiar to us, are - [, alias, cd, echo, expo, eval, exit, pwd, and 
read.  Some of these previously existed as external commands, some *must* be internal commands.

Related articles

lec # wk 10 File Attributes - Square Bracket command external or internal (all 14) RSS
├─ original   Tue 9th Jun 2020, 11:15am, Alastair H.
├─ reply 1   Tue 9th Jun 2020, 4:26pm, David M.
├─ reply 2   Tue 9th Jun 2020, 4:36pm, David M.
├─ THIS   Tue 9th Jun 2020, 5:15pm, Christopher M.
├─ reply 4   Tue 9th Jun 2020, 5:26pm, David M.
├─ reply 5   Tue 9th Jun 2020, 7:50pm, Lee dB.
├─ reply 6   Tue 9th Jun 2020, 9:01pm, Alastair H.  O.P.
├─ reply 7   Wed 10th Jun 2020, 4:11am, Christopher M.
├─ reply 8   Wed 10th Jun 2020, 4:12am, Christopher M.
├─ reply 9   Wed 10th Jun 2020, 9:33am, Lee dB.
├─ reply 10   Wed 10th Jun 2020, 3:28pm, Christopher M.
├─ reply 11   Wed 10th Jun 2020, 6:39pm, Lee dB.
├─ reply 12   Fri 12th Jun 2020, 3:51am, Christopher M.
└─ reply 13   Fri 12th Jun 2020, 10:31am, Lee dB.
This Page

Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020