Sponsored Content
Top Forums UNIX for Dummies Questions & Answers is /. superfluous? why not just say / ? Post 302079004 by thestevew on Thursday 6th of July 2006 09:09:07 AM
Old 07-06-2006
In many contexts /. (i.e. the current directory that is the root directory) is the same as / (the root directory) just as ./ (the directory that is the current directory) is the same as . (the current directory), e.g. they both work predictably for cd and for ls if no filename is provided.

Wikki says about slashdot the site:
Quote:
The site's slogan is "News for nerds. Stuff that matters." Officially, the name "Slashdot" was chosen to confuse those who tried to pronounce the URL of the site (h-t-t-p-colon-slash-slash-slash-dot-dot-org).
!
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

Perl: How to avoid warnings for superfluous values returned?

Hi all, a question for the Perl knowledgeable: I have use warnings; enabled. I use something like: ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); In the further code I only work with some of the returned variables, as the others I have no need for. Though the... (1 Reply)
Discussion started by: zaxxon
1 Replies
CD(1)							    BSD General Commands Manual 						     CD(1)

NAME
cd -- change working directory SYNOPSIS
cd directory DESCRIPTION
Directory is an absolute or relative pathname which becomes the new working directory. The interpretation of a relative pathname by cd depends on the CDPATH environment variable (see below). ENVIRONMENT
The following environment variables affect the execution of cd: CDPATH If the directory operand does not begin with a slash (/) character, and the first component is not dot (.) or dot-dot (..), cd searches for the directory relative to each directory named in the CDPATH variable, in the order listed. The new working directory is set to the first matching directory found. An empty string in place of a directory pathname represents the current directory. If the new working directory was derived from CDPATH, it will be printed to the standard output. HOME If cd is invoked without arguments and the HOME environment variable exists and contains a directory name, that directory becomes the new working directory. See csh(1) for more information on environment variables. The cd utility exits 0 on success, and >0 if an error occurs. SEE ALSO
csh(1), pwd(1), sh(1), chdir(2) STANDARDS
The cd command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible. BSD
June 5, 1993 BSD
All times are GMT -4. The time now is 06:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy