01-13-2009
How to remove a directory called "--"
I need to remove a directory called "--"". But it seems "--" linked to /export/home/usr1, which I do not want to delete. How to rm "--" safely?
Quote:
usr1@hostname1:/xxx/xxxx/xx/xxxx/dir1$ ls -l
drwx--S--- 2 usr1 group1 96 Aug 29 2005 --
usr1@hostname1:/xxx/xxxx/xx/xxxx/dir1$ cd --
usr1@hostname1$ pwd
/export/home/usr1
The OS is Solaris 9.
Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear friends, following is the output of a script from which I want to remove spaces and new-line characters.
Example:-
Line1 abcdefghijklmnopqrstuvwxyz
Line2 mnopqrstuvwxyzabcdefghijkl
Line3 opqrstuvwxyzabcdefdefg
Here in above example, at every starting line there is a “tab” &... (4 Replies)
Discussion started by: anushree.a
4 Replies
2. Windows & DOS: Issues & Discussions
Hi,
I issue smbclient on a Linux REd hat server :
smbclient -L ***.16.0.42 -U domaine/Administrator
Password:
Domain= OS= Server=
Domain= OS= Server=
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC distant
... (0 Replies)
Discussion started by: big123456
0 Replies
3. UNIX for Advanced & Expert Users
Hi,
I was trying to call "script <an ip add>" command from .profile file to log everything whenever anyone logs in to this user. I did the following at the end of .profile. 1) Extracted the IP address who logged in 2) Called script < ip add> . The problem I am facing is all, aliases etc. written... (3 Replies)
Discussion started by: amicon007
3 Replies
4. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
Hi all,
So I have found a file literally called "-X" in a folder, that is preventing me from using any meaningful commands in that folder because, as I understand it, at command runtime it will convert any wildcard characters into matching filenames, thus a command such as:
ls *Ends up actually... (7 Replies)
Discussion started by: dan-e
7 Replies
7. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone.
#!/sbin/sh
EXITING()
{
umount /FOLDER
rm -Rf /FOLDER
echo "EXIT"
exit 0
}
EXITING
echo "OK" (8 Replies)
Discussion started by: vacadepollo
8 Replies
9. Linux
Linux Gurus,
I need to provide Read only access for particular group of users, they should have Read only access to entire server except their Home directory.
I tried using setfacl that's not helping. Can you please suggest is there any other alternate way to address this request.
Your help is... (5 Replies)
Discussion started by: shekar777
5 Replies
10. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT SUNOS
wnnhosts
wnnhosts(4) File Formats wnnhosts(4)
NAME
wnnhosts - Wnn6 Kana-Kanji conversion server/dictionary lookup server access control file
SYNOPSIS
/etc/lib/locale/ja/wnn/wnnhosts
DESCRIPTION
wnnhosts specifies users who can use the Wnn6 Kana-Kanji conversion server (jserver) and the Kana-Kanji conversion server that can be con-
nected to the Wnn6 dictionary lookup server (wnnds).
The following is the format of the access control file. Place a space character before "{".
jserver ja <Kana-Kanji conversion server> {
<access control data>
:
}
wnnds ja <dictionary lookup server> {
<access data>
:
}
<Kana-Kanji conversion server> is specified in the following format.
hostname The Kana-Kanji conversion server that uses the well-known port number(22273) on host hostname.
hostname/port_no The Kana-Kanji conversion server that uses port_no as port number on host hostname.
<dictionary lookup server> is specified in the following format.
hostname The dictionary lookup server that uses the well-known port number(26208) on host hostname.
hostname/port_no The dictionary lookup server that uses port_no as port number on host hostname.
<access control data> for jserver is specified in the following format.
hostname All the users on the host can use data.
hostname:username_list username_list contains a list of username separated with ",". Users listed in the list on this host can use data.
@username This user can use data from any host.
<access control data> for wnnds is specified in the following format.
hostname jserver on this host can be connected.
jserver and wnnds use the access control information with the host name and port number matched.
Lines beginning with ";" are comments.
EXAMPLES
Example 1:
jserver ja_JP hostA {
;hostC:usr1,usr2,usr3
hostA:usr1,usr4
hostB
hostC:usr5
@usrA
;usrB
}
wnnds ja_JP hostA {
hostA
hostD
}
jserver ja_JP hostA/22273 {
hostB
hostE
@usrA
}
wnnds ja_JP hostA/22385 {
hostA
hostD
}
SEE ALSO
jserver(1M), wnnaccess(1M), wnnds(1M)
SunOS 5.10 10 Jan 2003 wnnhosts(4)