General :: Auto Complete The Path Right??
May 26, 2011complete cd 'p/l/d/'
complete mkdir 'p/l/d/'
complete rmdir 'p/l/d/'
[code]....
complete cd 'p/l/d/'
complete mkdir 'p/l/d/'
complete rmdir 'p/l/d/'
[code]....
Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
View 1 Replies View Relatedhas anyone the same problem with bash in -current? Everytime I use the commandline completition with TAB , it adds me a space, so I always need to push the backspace to continue to complete the path.So the whole thng get's a bit unuseable.I'm using bash-4.1.010-486-1 and bash-completition-1.3-noarch
View 4 Replies View RelatedI inadvertently typed the wrong path when changing my user login shell and now every time I log in I get a message stating that it can't find the shell and boots me off the system. It will then redisplay the login prompt. I'm running Ubuntu Server x64 in VMware Workstation.
View 1 Replies View RelatedHow do I have an auto completion feature for scp? I often need to 'scp ' a file to a remote server, then I type:
PHP Code:
scp someprogram paulga@pinherstforestrain.math.edu
I'd begin to type tab before or after the input of @. But the available choices are mainly:
@localhost6, @localhost.localdomain, @localhost, etc..
Which file records these hosts name? Second, to execute a program in current directory, I have to type ./program, how can I omit the prefix, or I could type it as I type "octave",etc.
I'm very much used to typing "evo" for launching evolution, chrom to get chromium etc, when on alt+f2.
Now, in Unity, I get suggestions as icons when typing, but not the "auto-complete" I had in 10.10.
It's annoying to have to use the mouse to select the application to run each time.
I installed the Autocomplete plugin http:[url].... for gedit and it works great. But when I ran it as root "sudo gedit ...", Autocomplete is not on the list of plugin and the auto complete function is not working.Is it possible to make the plugin available to all users?
View 5 Replies View RelatedA very annoying bug has been around for some time now. Auto-complete in the address field on Firefox does not work after Ubuntu resumes after screensaver. What I have to do is to minimise the browser and then maximise it again... it then auto-complete as it should. Surely I cannot be the only one noticing this? I'm on Ubuntu 10.04 and Firefox 3.6.13.
View 5 Replies View RelatedIn older versions of ubuntu I could use tab to autocomplete folder names multiple times in one command in a terminal, for example:
Code:
tar -cvf myapp.tar --exclude='/var/www/f[TAB]older-name/cache/*' --exclude='/var/www/f[TAB]older-name/sessions/*' /var/www/f[TAB]older-name
Now only the first tab works, is there any way to get this behavior back?
Despite enabling the "auto-complete" to complete an e-mail address from my personal Address-book, it doesn't work. After pressing on the "To"-button, no e-mail address is visible in the list of contacts. That is strange since the contacts are visible within the address book itself. However, when I typed the name of a contact within the "Search"-field of the address book, it also shows no result. Strange... Additional info: two days ago I replaced addressbook.db in Debian manually by the addressbook.db from Ubuntu 11.04 (I'm migrating from Ubuntu 11.04 to Debian Squeeze). It seems that there is no connection between the visible contacts in the address book and the rest of the Evolution. How can I solve it?
View 3 Replies View RelatedI just installed F15 and although different, I like it a lot. One thing I don't like, however, is the default auto-completion of environment variables in the terminal. In F14 and older, if you type for instance
Code:
ls $HOME and hit TAB, auto-complete will list the contents of $HOME to search deeper, so to say. But in F15, the terminal automatically escapes the $ sign. If you do the same as above, you get
Code:
ls $HOME
instead of
Code:
ls /home/benny/
how to change the auto-complete settings of the terminal so that $'s are not escaped anymore?
I've got an annoying problem that 'man' and some other commands do not auto-complete (via TAB). e.g. typing: man rsyn (TAB, TAB, TAB, etc) will not auto-complete to 'man rsync' however, if i 'sudo -s' & then try the above, 'man' auto-completes everytime. (Directories always auto-complete successfully) My ~/.bashrc contains:
Code:
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
[code]....
I've noticed on a couple of occasions that e-mail address auto-complete drop down lists have e-mail addresses in that I have never entered (!!) They all seem to be for people with the surname fenton at either gmail or hotmail. Is it likely that I have been hacked?
View 3 Replies View RelatedHow could I disable this annoying feature?
Half the time it selects the wrong address and sometimes I miss it and send emails to wrong people.
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies View RelatedI have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies View RelatedCurrent script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
I code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.
View 2 Replies View RelatedI am running Fedora 8. Each time I run a YUM command, I get the message that there are unfinished transactions, and to run yum-complete-transaction. Upon running yum-complete-transaction, it fails with this error. How can I remove this uncompleted transaction so I can finish the last one?
View 2 Replies View Relatedkernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17
Code:
As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.
If I am root, things go well:
Code:
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies View Relatedhow to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.
View 2 Replies View RelatedI am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.
View 2 Replies View RelatedI have a very simple bash script that just runs a series of backups using tar; for example, one of the lines reads:tar -czvpf /srv/backups/backup_home.tar.gz /homeThis script is scheduled to run every Friday, but occasionally I will schedule it to run before using 'at'. The script is located on the same disk as the backups are saved, I then transfer them off the machine manually (I've yet to automate this). I am only compressing files that are located on the server's disk, no files are being transferred over the network at all.
The problem is, occasionally it appears to be causing the 'server' I have running all the time to completely freeze. When this happens the machine does not power down and there are no entries in the log that indicate a problem. Everything simply stops until I press the reset button. Note that this issue also happens when you run the script manually and not just when it is run via cron or at.I *think* this might be happening when a large file is being compressed, but I'm not certain.
It's about creating a complete backup of my machine. What I want to do is completely backup my whole computer, everything!, because I've got it just right. If something were to go wrong then I want to restore right back to the way the system is right now (from a rescue disk). I know that using dd to do a byte level backup would be best but I read that it's not all that great for restoring the system (HDD's sizes must be the same).
Rsync looks favorite but can it copy the root directory. i.e. "rsync -a / /media/backup/" and all the partitions. I just not sure whether it can do the whole computer. Dump is another tool but it seems to have dependencies to tool versions. And again I don't know if it will do the whole system and how easy it is to restore. There is a tool called FSArchiver that looks to do what I want and it comes part of SystemRescueCd (a bootable CD used to fix computers). It turns out that the backup I'm looking to do is at the file system level where the tools above are really file level backups.
.After trying to instal 10.40 as a "guest" of Windows7 in its own partition on drive D I got all the way thru then re-booted to finish the install as requested. At that point after reboot I selected Ubuntu from the boot menu then it hung up after quickly displaying and overwriting some option numbers - probably for GRUB
I uninstalled 10.40 then tried Ubuntu 9.4. It worked better and gave me an option menu after the install reboot. If I chose "normal" it also hung up.I was succesful by chosing one of the other GRUB choices that it gave me.Now everything works but with an older version.
as in the hard drive being 100% erased as if
C:>format/all
would be in MS DOS
P.S. Reminder: I have Ubuntu