which
will search your path for the arguments you supply, it’s found on just about any BSD or SysV UNIX
moriarty:~ dave$ which bash true false
/bin/bash
/usr/bin/true
/usr/bin/false
Related Posts:
- How to open a “-” dashed filename using terminal?
- How do I pause my shell script for a second before continuing?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- What does export PS1=”\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ” mean in MacOS’ bash Terminal?
- How do I execute a bash script in Terminal?
- How to switch Python versions in Terminal?
- Echo newline in Bash prints literal \n
- How to reload .bashrc settings without logging out and back in again?
- mvn command not found in OSX Mavrerick
- How do I split a string on a delimiter in Bash?
- cp: missing destination file operand after
- mvn command not found in OSX Mavrerick
- How do I edit $PATH (.bash_profile) on OS X?
- -bash: export: `=’: not a valid identifier
- How can I add numbers in a Bash script?
- How do I add a newline using printf?
- How to start/stop/restart launchd services from the command line?
- Can Mac OS X be run inside Docker? [closed]
- How do I set the global PATH environment variable on OS X?
- How do I create user accounts from the Terminal in Mac OS X 10.5?
- How to restart Nginx on Mac OS X?
- zcat/gzcat works in linux, not on osx. general linux/osx compatibility
- Why is rsync skipping the main directory?
- Can I specify a port in an entry in my /etc/hosts on OS X? [duplicate]
- Using prevNext Modx Addon
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- Substring in excel
- Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException Error
- How to compare strings in Bash
- Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net
- Difference between associative entity and associative relationship attribute?
- max value of integer
- How to install apoc for neo4j?
- What is the difference between == and equals() in Java?
- XQuery data and text() function
- PHP – exit or return which is better?
- An “and” operator for an “if” statement in Bash
- How do you copy and paste into Git Bash
- What does “?” mean in Java?
- git pull on a different branch
- nodemon not working: -bash: nodemon: command not found
- What does “-ne” mean in bash?
- “sed” command in bash
- How to resolve ‘preflight is invalid (redirect)’ or ‘redirect is not allowed for a preflight request’
- Implement touch using Python?
- How to override equals method in Java
- How to convert .crt cetificate file to .pfx
- How do you loop in a Windows batch file?
- Missing value auth-url required for auth plugin password
- JMS Topic vs Queues
- How to set the authorization header using cURL
- yum error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” updating ContextBroker
- OCaml: Match expression inside another one?
- Bash script: bad interpreter
- Swift protocols: method does not override any method from its superclass
- What is index.js used for in node.js projects?
- PostgreSQL: Query has no destination for result data
- server error:405 – HTTP verb used to access this page is not allowed
- Subtract 1 day with PHP
- Node inconsistent with parents in JAGS model (R)
- “Error installing rails” because “extconf.rb failed” on Ubuntu 18.04
- Eclipse IDE – Error: Build path specifies execution environment Java SE 1.7
- Bash mkdir and subfolders
- Operator Overloading C++; too many parameters for << operation
- What are the double colons (::) in R?
- Visual Studio 2019 – error MSB8020: The build tools for Visual Studio 2013 cannot be found
- How to include file in a bash shell script
- How do you run CMD.exe under the Local System Account?
- Remove ‘Theme Options’ Option Tree WordPress
- Posting to admin-ajax from front end. Is this redirect ok?
- Reset counter with jQuery [closed]
- The Principles of Essay Title Generator Free
- Follow author on muti-user WordPress site
- Redirect, Change URLs or Redirect HTTP to HTTPS in Apache – Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
- List all DNS records in a domain using dig?
- Check if array is empty in Bash
- How to add dependency on a Windows Service AFTER the service is installed
- Monday morning mistake: sudo rm -rf –no-preserve-root /
- What’s the meaning of ‘@’ in a DNS zone file?
- Delete Amazon EC2 terminated instance
- robocopy transfer file and not folder
- What’s the difference between include_tasks and import_tasks?
- rm on a directory with millions of files
- What ports to open for mail server?
- Why is Enterprise Storage so expensive?
- Should a wildcard SSL certificate secure both the root domain as well as the sub-domains?
- Why can’t MX records point to an IP address?
- How to show all banned IP with fail2ban?
- How can I get diff to show only added and deleted lines? If diff can’t do it, what tool can?
- Adding a user to an additional group using ansible
- Best system administrator accident [closed]
- Reread partition table without rebooting?
- Storing a million images in the filesystem
- How to reload default Mac OSX routing table without rebooting
- How to keep rsync from chown’ing transferred files?
- How to view connected users to open vpn server?
- How to get Apache2 to redirect to a subdirectory
- What does that mean: packages excluded due to repository priority protections
- How can I set a short timeout with the ping command?
- Why is ssh agent forwarding not working?