Re: Enter a hidden directory



On 2013–12–22 /dev/rob0 wrote:

On Sun, Dec 22, 2013 at 02:36:03PM +0100, Marco wrote:
I intended to copy some files from a ZFS snapshot to my current
machine. However, I couldn't find a way to do this with mc. The
situation is as follows:

1) I use the “SFTP link” to connect to the server. This means I
can only use the panels, since the built in shell or <ctrl-O>
unfortunately does not work on shell links.

2) The snapshots are stored in a hidden directory called “.zfs”.
The hidden part is not the that it starts with a dot, but that
it doesn't show up with “ls -a”. However, you can successfully
“cd .zfs” into it.

How can I copy a file from this directory to my current host
using mc? I can't use “cd .zfs” because shell commands are not
supported.

Did you try “cd .zfs” on the command line in the panel? That's not
done in a subshell. That actually controls what's seen in the
panel. I don't have time to test it myself, but I think that will
work.

That actually works. I have the command line deactivated since I
have no use for it in my workflow. I always use a real shell with
<ctrl-O>.

While reading the man page about a key binding to quickly
activate/deactivate the command line I stumbled upon the “Quick cd”
command <M-C> which does exactly what I need. No need to activate
the command line.

Thanks for your quick reply.

Cheers,
Marco


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]