03-03-2020
It does not make sense to me.
The purpose of the bind mount is to let it appear under /home/ - why do you want to break it?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it unsafe to put your own home directory (a regular user) in your search path? I am writing useful shell scripts, but don't have the permissions to put them in /usr/bin. (Korn shell)
thanks (2 Replies)
Discussion started by: jpprial
2 Replies
2. Shell Programming and Scripting
Hi guys
I'm trying to move an empty directory to the $TRASH directory. Say the directory i have is ./hello/hello1/hello2 and i'm in hello2, and i want hello2 moved.
this code:
TRASH=$home/deleted
find "$TRASH/$1" -type d -exec rmdir { } \; 2>/dev/null
mv -f $1 $TRASH 2>/dev/null
works... (2 Replies)
Discussion started by: olimiles
2 Replies
3. Shell Programming and Scripting
I have a text file with full list of files with their full path. I wanted to sort it by directory then files then subdirectory by alphabetically. When I used the sort command it doesn't give like what I want. Could somebody help me on this.
Here is the ex:
This is what I'm getting... (2 Replies)
Discussion started by: javidraaj
2 Replies
4. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Is there a command that tells you right away the current working directory? I know the command "pwd", but that one gives the full path.
if pwd gives me:
/a/b/c/d/ggg/HERE
I want something that will give me:
HERE
Thanks,
Gaurab (13 Replies)
Discussion started by: gaurab
13 Replies
6. Shell Programming and Scripting
Hey
I'm new to the forums here, and I'm seeking help for this script that I'm writing. When I do ls -l of a directory it shows the full pathname for files in it. For example, if the directory is /internet/post/forum/ and the file is topic, it currently shows internet/post/forum/topic. What's the... (3 Replies)
Discussion started by: unity04
3 Replies
7. Shell Programming and Scripting
I'm running AIX unix korn shell. If I echo $0, I only get the filename, it does not have the directory name also. So when I do: `dirname $0` it returns a . (meaning current directory). How get $0 to return the full path/filename? Do I need something in my .profile? Thank you. (8 Replies)
Discussion started by: sboxtops
8 Replies
8. UNIX for Dummies Questions & Answers
How to get the current directory Path in your prompt?
i am getting a $ mark only in my prompt?
Please help me with this (3 Replies)
Discussion started by: Abhishek0683
3 Replies
9. UNIX for Dummies Questions & Answers
My input is as below :
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt
/splunk/scrubbed/triumph/ifind.triumph.txt
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
Discussion started by: IshuGupta
5 Replies
10. Linux
Hi
I have a requirement like this:
/abc/a/x.txt
/abc/a/y.txt
/abc/b/x.gz
/abc/b/y.txt
I need output like this:
/abc/a:*.txt
/abc/b:*.txt
/abc/b:*.gz
I have tried find /abc -type f -name "*.*" ||awk -F . '{print $NF}' it is print only extensions without path name.
Please... (5 Replies)
Discussion started by: lijjumathew
5 Replies
MNT(3) Library Functions Manual MNT(3)
NAME
mnt - attach to 9P servers
SYNOPSIS
#M
DESCRIPTION
The mount driver is used by the mount system call (but not bind; see bind(2)) to connect the name space of a process to the service pro-
vided by a 9P server over a communications channel. After the mount, system calls involving files in that portion of the name space will
be converted by the mount driver into the appropriate 9P messages to the server.
The mount system call issues session and attach(5) messages to the server to identify and validate the user of the connection. Each dis-
tinct user of a connection must mount it separately; the mount driver multiplexes the access of the various users and their processes to
the service.
File-oriented system calls are converted by the kernel into messages in the 9P protocol. Within the kernel, 9P is implemented by procedure
calls to the various kernel device drivers. The mount driver translates these procedure calls into remote procedure calls to be transmit-
ted as messages over the communication channel to the server. Each message is implemented by a write of the corresponding protocol message
to the server channel followed by a read on the server channel to get the reply. Errors in the reply message are turned into system call
error returns.
A read(2) or write system call on a file served by the mount driver may be translated into more than one message, since there is a maximum
data size for a 9P message. The system call will return when the specified number of bytes have been transferred or a short reply is
returned.
The string is an illegal file name, so this device can only be accessed directly by the kernel.
SEE ALSO
bind(2)
SOURCE
/sys/src/9/port/devmnt.c
BUGS
When mounting a service through the mount driver, that is, when the channel being multiplexed is itself a file being served by the mount
driver, large messages may be broken in two.
MNT(3)