03-02-2004
Thanks very much, that's done the trick.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I enabled the Autocomplete of filename by the command set -o emacs
But i couldn't enjoy the benifits of vi anymore. i.e I couldn't get the command history by pressing Esc and k.
How to enjoy both of this features at a time.?
Regards
Karthik (3 Replies)
Discussion started by: fermisoft
3 Replies
2. UNIX for Dummies Questions & Answers
I'm coming from a c-shell environment where I was spoiled with the tab completion on the command line, only to find that using korn-shell I don't have this capability. The only thing I can find by googling is to use 'set filec' - but that doesn't work (and I think is only for c-shell anyway).
... (0 Replies)
Discussion started by: uacheesehead
0 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
I'm using the Solaris 8 and I'd like to know how to configure my KSH to use the double ESC to complete the command automatically.
Do you know how do it??
thanks.
rgs,
Paulo (1 Reply)
Discussion started by: PAulo Trombetta
1 Replies
4. Shell Programming and Scripting
Suppose there exists a file, "/home/andrew/product/test". And suppose I set $FOO to "/home/andrew/product/"? I can't seem to type "$FOO/t" and then Escape (csh) in order to autocomplete.
Is this possible in other shells? If not, then why? If so, then why can't csh do it, and how can I make... (1 Reply)
Discussion started by: acheong87
1 Replies
5. UNIX for Dummies Questions & Answers
Hi there,
I'm learning PHP now. $var_name is how to declare a variable.
I was wondering if there is any convenient way in vim to autocomplete the dollar sign($) before a word.
Something like, after typing var_name, then press some key, for example Tab, to automatically add a doller sign... (4 Replies)
Discussion started by: hz_i3
4 Replies
6. Solaris
Hi, i need autocmplete file_name/dir_name by TAB key. I work on UNIX (TRU64) and I just tried to type on .profile this setting:
set autolist
but it doesn't work. I think it is because this command doesn't belong to this UNIX version (sure it works for example on HP-UX).
I need to set it... (0 Replies)
Discussion started by: D4vid
0 Replies
7. Shell Programming and Scripting
I cant figure out how the complete function works in tcsh.
1. I whould like it to complete after writing my_program.py with either start or stop.
I have tried to do something like this in .cshrc.user:
complete my_program.py \
'c/start/' \
'c/stop/'
However i cant get it to... (1 Reply)
Discussion started by: mr_cad
1 Replies
8. Shell Programming and Scripting
Hi
I'm still new around bash and Ubuntu, but I was expecting for the "cp" command to have an autocomplete feature like the ls command. Should it, or I'm assuming too much?
In case it doesn't have by default, is there a way to enable it?
Cheers (2 Replies)
Discussion started by: blackfox2015
2 Replies
9. Shell Programming and Scripting
In the bash below I am asking the user for a panel and reading that into bed. Then asking the user for a file and reading that into file1.Is the grep in bold the correct way to apply the selected panel to the file? I am getting a syntax error. Thank you :)
... (4 Replies)
Discussion started by: cmccabe
4 Replies
10. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
LEARN ABOUT SUSE
switch_root
SWITCH_ROOT(8) System Manager's Manual SWITCH_ROOT(8)
NAME
switch_root - switch to another filesystem as the root of the mount tree.
SYNOPSIS
switch_root [-hV]
switch_root newroot init [arg...]
DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process.
WARNING: switch_root removes recursively all files and directories on the current root filesystem.
OPTIONS
-h, --help
show help and exit
-V, --version
show version number and exit
RETURN VALUE
switch_root returns 0 on success and 1 on failure.
NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet
this requirement then you can first use a bind-mounting trick to turn any directory into a mount point:
mount --bind $DIR $DIR
SEE ALSO
mount(8) chroot(2) init(8) mkinitrd(8)
AUTHORS
Peter Jones <pjones@redhat.com>
Jeremy Katz <katzj@redhat.com>
Karel Zak <kzak@redhat.com>
AVAILABILITY
The switch_root command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Linux June 2009 SWITCH_ROOT(8)