Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Bash Shell Script Parameters/Switches?

Posted on 2009-04-15
3
Medium Priority
?
311 Views
Last Modified: 2013-12-26
I'm currently writing a shell script, and have noticed that there are certain switches/parameters that can be used which don't seem to have much documentation

For example, if I use

if [ -d $DIR ]

The -d is a switch, along with lots more.

Is there a resource which tells me which each of these switches does?
0
Comment
Question by:jaxstorm
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24150977
man test
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 24151072
... if you have no Unix machine at hand right now:

http://unixhelp.ed.ac.uk/CGI/man-cgi?test

0
 
LVL 8

Author Comment

by:jaxstorm
ID: 24151228
Good
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month12 days, left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question