Unix Builtin commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix Builtin commands
# 1  
Old 11-16-2011
Error Unix Builtin commands

Hi,
In unix ls command is found in /bin/ls. Similarly where can I find built-in commands like read, set, unset commands. I found in some couple of websites saying found in bash tool set. In unix everything is considered as a type of file with path.
Please can anyone tell me where is that Bash tool set found any path to find these built-in commands. Without clearing this doubt, I could not able to skip this built-in chapter.Smilie
# 2  
Old 11-16-2011
These commands are built into the shell executable itself (/bin/bash, /bin/ksh,...), so they do not exist as an independent filesystem object.
# 3  
Old 11-16-2011
Quote:
Originally Posted by gwgreen1
In unix everything is considered as a type of file with path.
Don't take this statement to the letter. It is correct Unix tends to have more things associated to a path that most other operating systems but that's it. Hopefully, not everything has/is a path.
# 4  
Old 11-20-2011
Code:
which name_of_command

# 5  
Old 11-21-2011
Don't use "which". This command is only searching the PATH for the queried command. Only a builtin command can tell if another command is a builtin or not, this builtin is "type" with bash.

Last edited by jlliagre; 11-21-2011 at 05:47 PM.. Reason: typo
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 11-22-2011
Quote:
Originally Posted by jlliagre
Don't use "which". This command is only searching the PATH for the queried command. Only a builtin command can tell if another command is a builtin or not, this builtin is "type" with bash.


Didn't even think of that. Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Builtin alternatives for several commands?

I'm adapting a BASH script to run with an absolute minimal amounts of Cygwin64 files so colleagues using Windows can use it without installing Cygwin. I am down to the following in /bin only (replacing cut with parameter substitution eliminated all needed things in /etc) bash.exe cygattr-1.dll... (5 Replies)
Discussion started by: Michael Stora
5 Replies

2. UNIX for Dummies Questions & Answers

Typeset builtin error

I'm attempting to emulate another users .zshrc file. However, I'm sort of confused on what exactly the -g argument does for the typeset builtin. Here's what he has in his .zshrc file: typeset -ga sources sources+="$ZSH_CONFIG/environment.zsh" sources+="$ZSH_CONFIG/options.zsh"... (4 Replies)
Discussion started by: brandontdr
4 Replies

3. UNIX for Dummies Questions & Answers

Zsh builtin "kill" stopped working

Hi all, I've been using zsh for a while, and was enjoying the builtin "kill" with tab completion. But since I installed "oh-my-zsh" the kill completion has stopped working. I have not edited my new ~/.zshrc file. My ~/.oh-my-zsh/lib/completions.zsh contains the following: zstyle... (0 Replies)
Discussion started by: nickednamed
0 Replies

4. UNIX for Dummies Questions & Answers

Help with UNIX commands

I need some help with a unix command. I want to download files from a directory, this is the url of one of the files http://www.brugmansia.us/forums/uploads/packages-0296224001353469825.jpg And there are several hundred that start with http://www.brugmansia.us/forums/uploads/packages- ... (1 Reply)
Discussion started by: Mary Voss
1 Replies

5. Shell Programming and Scripting

Read Embedded Newline characters with read (builtin) in KSH93

Hi Guys, Happy New Year to you all! I have a requirement to read an embedded new-line using KSH's read builtin. Here is what I am trying to do: run_sql "select guestid, address, email from guest" | while read id addr email do ## Biz logic goes here done I can take care of any... (6 Replies)
Discussion started by: a_programmer
6 Replies

6. Shell Programming and Scripting

The builtin split function in AWK is too slow

I have a text file that contains 4 million lines, each line contains 2 fields(colon as field separator). as shown: 123:444,555,666,777,888,345 233:5444,555,666,777,888,345 623:454,585,664,773,888,345 ...... Here I have to split the second field(can be up to 40,000 fields) by comma into an... (14 Replies)
Discussion started by: kevintse
14 Replies

7. UNIX for Dummies Questions & Answers

ALL unix commands

Hello Folks Where can I find all the unix commands with explanations , on the internet. I am searching but most of the sites are listing a few of the important ones. PLease guide through thanks (4 Replies)
Discussion started by: supercops
4 Replies

8. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

9. UNIX for Dummies Questions & Answers

commands for unix

Hi All, I am new to UNIX programming. Can you send me the links where we can find all commands and their description in UNIX. Help in this regard is highly appreciated. Regards, Azaz Ali. (1 Reply)
Discussion started by: azazalis
1 Replies

10. UNIX for Dummies Questions & Answers

Maingrame to UNIX sending UNIX commands

I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies
Login or Register to Ask a Question