LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2006, 12:39 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
What is this strange directory


I am a systems tech somewhat familiar with Linux, however I have come across a odd directory that behaves quite strangely.

This is a Solaris system and there is a directory with this format:

&SAVEDLISTS&

When I try to change to the directory as a root user, I get this:

cd &SAVEDLISTS&
[1] 1089570
[2] 868412
[1] - Done cd &SAVEDLISTS&
# ksh: SAVEDLISTS: not found.

What kind of directory has these ampersands before and after and what is this output I am getting?
 
Old 11-15-2006, 01:09 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Universe database's typically have a file not a directory by the name &SAVEDLISTS&.
 
Old 11-15-2006, 01:56 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
And, of course, you have to "escape" the ampersands to get the shell use them as text instead of a "spawn" directive.
 
Old 11-15-2006, 01:57 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Looks like this was created either by mistake by a user or by a program with a bug in it (I'd guess some SQL script which uses variable expansion with the '&variablename' syntax that SQL*PLUS uses, but the expansion didn't happen for some reason).

Anyhow, to the shell, the & character is a special one which tells the shell to put the command which comes before it into the background (using shell job control).

You can tell the shell not to interpret the & character in this way by quoting your argument to cd (or whatever command you are trying to execute):
Code:
cd '&SAVEDLISTS&'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strange directory entry in Desktop davsnotn Linux - Security 5 06-08-2006 12:14 PM
strange filename/file in my /usr/bin directory M$ISBS Linux - Security 1 06-04-2006 07:55 PM
directory permissions acting strange. mushmaster Linux - Software 1 02-12-2006 07:33 PM
strange directory behavior exodist Linux - Software 1 11-20-2005 04:37 PM
strange problem while compressing a directory kartheekpn Linux - General 5 08-04-2005 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration