i am currently learning Linux commands, and was wondering if they are the same as unix / darwin commmands ? so i could use them in Terminal ?
thanks!
thanks!
i am currently learning Linux commands, and was wondering if they are the same as unix / darwin commmands ? so i could use them in Terminal ?
thanks!
Keep in mind, unless you are writing shell programs, the particular shell you are using isn't to have any effect on the program (ie. ls is ls regardless of the shell).
Even then, isn't it fairly easy to define the shell at the beginning of the script, using a line like:
#!/bin/bash
And also good practice?
I also think it's best to stick with bash, though... it doesn't seem like it's quite so common for OS X users to switch around between shells as it is in other *nix environments.
/bin/sh is the Bourne shell. no ambiguity there.A lot of people use #!/bin/sh which is commonly a symlink to the default shell, so there is no way to know what you're getting.
ok, so what should i choose in Terminal prefs ?
ok, so what should i choose in Terminal prefs ?
Terminal prefs just controls the way the window looks -- how many lines, is it transparent, what is the default font / color / size, does the cursor blink, etceranda. It has nothing really to do with any of this.
The preferences in the Terminal allow you to override the default shell.
You can't be serious.
Using #!/bin/bash is definitely a good practice. A lot of people use #!/bin/sh which is commonly a symlink to the default shell, so there is no way to know what you're getting.
My response had (hopefully clearly) been more about how to get started using terminal commands in OS X. I don't think that tutorial will make anyone ready to be a sysadmin.