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
mktemp(1)						      General Commands Manual							 mktemp(1)

NAME
mktemp - make a name for a temporary file SYNOPSIS
directory_name] prefix] DESCRIPTION
makes a name that is suitable for use as the pathname of a temporary file, and writes that name to the standard output. The name is chosen such that it does not duplicate the name of an existing file. If the option is specified, a zero-length file is created with the generated name. The name generated by is the concatenation of a directory name, a slash the value of the environment variable truncated to - 6 characters, and the process ID of the invoking process. The directory name is chosen as follows: 1. If the option is specified, directory_name is used. 2. Otherwise, if the environment variable is set and a string that would yield a unique name can be obtained by using the value of that variable as a directory name, this value is used. 3. Otherwise, if a string that would yield a unique name can be obtained using as the directory, is used. 4. Otherwise, (current directory) is used. If the option is specified, prefix is used instead of the value of the environment variable for name generation. RETURN VALUE
returns zero on successful completion and non-zero if syntax, file access, or file creation errors were encountered or a unique pathname could not be generated. SEE ALSO
mktemp(3C), umask(1). mktemp(1)
All times are GMT -4. The time now is 09:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy