General :: Vi Editor To Move File Page?
May 10, 2011
I have a file of 200 pages. I want to move my cursor page wise. Suppose I want to move my cursor from last page of the file to up three pages.Is there any command to do it or I use "k" to move up?
View 3 Replies
ADVERTISEMENT
Dec 6, 2010
I am using Vi editor for editing and configuring my file.I am facing a little problem when there is long file like 3000 lines. Normally i use
Code:
:set number
in vi editor to visible my line number.The problem is when i have to go in the top of the file like say line number one I use k for it and to move down I use j which is too much time consuming. How can i jump directly my cursor to line number 2333 or line number 2600.
View 4 Replies
View Related
Jul 25, 2011
I have an Acer Aspire one which runs ubuntu 10.04. Recently it has developed a problem upon loading it where the screen will not stop flickering and won't allow me to see anything, let alone try to solve the problem. I did have a good google session and found that others have had this problem before, but I couldn't find a solution that worked. I decided to install the newest version via bootable usb and originally try SysLinux but for some reason it would not work, so I have since tried other programs to create a bootable usb. My problem is that whichever software I use, whenever I boot from the usb I get the original SysLinux page and cannot move from there.
Has SysLinux somehow changed the mbr of my usb stick? I'm basically stuck and this is my only non-essential usb so I don't want to use another one.
P.S. sorry if this is in the wrong section of the forum, I wasn't sure where to put it.
View 4 Replies
View Related
Sep 30, 2010
I have a Toshiba M55-135S, that I switched from Windows XP to Ubuntu 10.04 about a month ago. Loved it, but lately it is hanging at the Toshiba splash page and won't complete the boot without turning the laptop off an on several times. tonight it won't move pass the Toshiba splash page. Hardrive is only about a year old.
View 1 Replies
View Related
Feb 13, 2011
How do I save a file edited with the VI editor? How do I get help information on this program?
View 1 Replies
View Related
Aug 25, 2010
when I try to open the ftpusers file through vi editor in HP-UX, I am reciving the below error :
# vi ftpusers
"/var/tmp" No such file or directory
View 2 Replies
View Related
Sep 10, 2010
On this Red Hat Box that I am using there is no .vimrc file for the user root. So, I created one and entered only one line to highlight syntax with colors when I am writing scripts in PHP and Bash. But it is not working.
Code:
[root@localhost ~]# cat ~/.vimrc
syntax on
[code]....
View 6 Replies
View Related
Mar 10, 2011
How default editor can be changed in redhat linux to different editor.
View 4 Replies
View Related
Apr 24, 2011
Does any one know how can i input text by reading from a named pipe to any popular GUI based text editor?
View 5 Replies
View Related
Aug 2, 2010
I am using Ubuntu and looking for a good editor to edit a file that is > 4GB. I just need to put content at the end and beginning of the file. I suppose I could use something like
cat "text to add" >> huge_file
To append to the file. Is that the route to go? What about prepending? In general, what is the best route if I wanted to edit somewhere in the middle?
I've tried VIM and it fails miserably. I assume emacs and nano would be even worse. What else is there? I assume to accomplish what I am looking for, the editor would have to be specifically designed for this by not keeping the entirety of the file's contents in memory.
View 5 Replies
View Related
Dec 2, 2010
I'm running Linux lnx3-228 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
red hat linux.
When I try to install ctags for vim editor, it gives me the following error. error while loading shared libraries: libldap.so.2: cannot open shared object file: No such file or directory
When I look into the /usr/lib folder, the file is naturally missing. I have this file.
When I tried to rename the soft link to libldap.so.2 it gave me a segmentation fault.
Where do I install the packages from ?
View 3 Replies
View Related
Feb 14, 2011
To convert web-pages into PDF file in ubuntu 10.10 is very easy way. just press Ctrl and P and you will see a new box called Print. In that you will see Print to file in printer section. Now just press Print to file now you can see Name box and Output Formate first you have select (.) PDF and and now you move to Name place and give and name to that file Exp:- xxx.pdf and now go to save in folder: place just press it to change to save on desktop. And press Print box. After pressing print box it will convert the information in PDF formate In the second way you have to go file --> print --> it will open print box as mention in above you have to convert the information into PDF format In the third way you have to go file --> print preview --> it will open a new box called Ubuntu homepage| Ubuntu - Mozilla Fire fox in that you just press Print box and it will open print box and do same as mention in first part it will convert web page into PDF format.
View 3 Replies
View Related
Oct 19, 2010
I was wondering if it's possible to move the known_hosts file from ~/.ssh/known_hosts to ~/somewhere/.ssh/known_hosts . I have a server running Plesk and the user home directories do not have write permissions (they do have write permissions within the subfolders, however).
I was able to move the authorized_keys file by editing sshd_config AuthorizedKeysFile , but when I try to log in without password, I'm still prompted every time if I want to add the host to list of known hosts, and it fails to save every time since it cannot write to known_hosts. Thus I am still unable to automate some processes. I'd like known_hosts to be located in the same location as my authorized_keys, which does have correct permissions for users.
View 1 Replies
View Related
Feb 2, 2010
I have a directory , there are many files created in it , I want to use the command to move the files which elder than 30 days and gzip it and then move it to /tmp , and then remove those files , I tried use below command but not work.
find ~path -type f -mtime 30 -exec tar -zcvf - {} --remove-files > /tmp/oldfile.tgz ;
View 1 Replies
View Related
Mar 5, 2011
I want to move a big file (92gb tar) from a server to a new one
What's the best way to do this? I did try scp username@<xxx.xxx.xxx.101>:</home/xx...les/ani.tar.gz>
Which I found on the web somewhere but it did not work for me
View 3 Replies
View Related
Nov 23, 2009
I have two servers on my network (at home). Let's call them A and B.
I have a small shell script that I have written on server A that zips up a file, backs up a database. It's triggered by cron once a day.
After I run it, I would like to move this file from server A to server B.
As I said, both are on the same network (in the same room, actually), and so obviously have different network IPs.
What are my options to move these files? It would need to be something that was done in perhaps a shell script that was, like the shell script that zips the files, is triggered by a cron job.
I'm assuming there are actual applications for this sort of theng (rsync?), but can it be done with a shell script? It seems very simple and basic...
How might this be done?
Systems:
Server A - CentOS v. 5
Server B - RHEL v. 4
View 3 Replies
View Related
Apr 29, 2011
I have to move files between two file systems /inst and /inst2.When I perform 'cp -a /inst /inst2' it copies everything even hidden files and preserves access permissions.But when I perform 'mv /inst /inst2' it also preserves access perms and moves everything besides hidden files.Questions :hy is so ?What tool to use when moving file systems from one fs to another (rsync) ?
View 8 Replies
View Related
Feb 13, 2010
In order to protect myself if I make a mistake in typing a directory/filename path, I am searching for a way to prevent mv from doing anything if the source and destination files exist on separate partitions.I see no options in the man page.I just need to find a way to get the partition the directory/file is on
View 1 Replies
View Related
Jul 25, 2011
the system currently have a directory with all the invalid files. how bad is it to move a single file to a directory containing 3 million files already?
View 2 Replies
View Related
May 7, 2010
I wrote this little script and I need some help, I am trying to achieve following:Every day I receive new file in the /home/denis/MyData/ folder and I don't know what the file mane will be but I want to move any file that arrives there to the new location /media/DataBackup/Linux/backup/ (media/DataBackup/ is external 500GB USB drive)to automatically create new folder with the date and time stamp every day and then to move content of the /home/denis/MyData/ into the new folder with current date stamp. So every day there will be new folder and will contain files for that day only.My script is as follows:
cd /media/DataBackup/Linux/backup/
mkdir MyData_$(date +%Y%b%d_%HH%MM)
#this creates file MyData_current date and time
[code]...
View 3 Replies
View Related
May 10, 2010
How can I find page hit and page miss ratio in linux fedora core 12?
View 3 Replies
View Related
Nov 28, 2010
I am using Xfce as the desktop enviroment and Mozilla Firefox as the webrowser. Within the webrowser window, I do File>Save Page As. I save it, and the result is almost always foo.html and directory foo_files. But I think under KDE I could choose the format, one of them being something like "Single page" (only one file; the colecction of .png, etc is embedded into that file). And this is the format I want Xfce (or Firefox) to use when downloading to hdd.
View 1 Replies
View Related
Jul 26, 2010
All has been fine with my emails but today morning when i tried to log on I got an error message "You must be logged in to access this page, go to logon page" I dont understand why even when i supply my correct user name and password.
View 2 Replies
View Related
Dec 20, 2009
i have a car stereo that reads a USB drive with all my music on it, however to sort through the music it uses a method of finding folders containing music, then displaying them all in a list. i find this interface annoying because in order to sort the music by artist i have to go and manually move it out of the album folders by hand, this takes a long time for 11+ GB of music so i was trying to use the linux CLI to quicken the process. use a command like this
Code:
mv /media/usb/music/*/*/* /media/usb/music/*/
but for some reason this moves all my music into the last folder alphabetically in my drive, the music is all pre-arranged like this /media/usb/music/artist/album/song
View 5 Replies
View Related
Jan 10, 2011
I'm sure I've done this before and am having a brain fart.
I have run into this a couple of time this last month:
I have a list of torrent files (blahblahhexblah.torrent) saved in a text file. I would like to read the text file and populate the client directory.
I can echo the file using:
But I cannot remember how to pipe the output into the directory, nor can I find any resources that describe the process.
Interestingly enough, I've had a couple of opportunities to do similar tasks with passwords and privileges and even across the LAN in the last few days. Solving this problem will help me solve the others for next time.
View 2 Replies
View Related
Dec 14, 2010
I have ubuntu 10.10 installed I have 5 more NTFS partitions in my disk other then Home & root My problem is, when I try to delete a file or folder it says "Cannot move file to the Rubbish Bin, do you want to delete permanently? The file "Nisarg" cannot be moved to the Rubbish Bin." I have more 2 NTFS partition on portable hard drive. On It trash is working fine.My home and Root folder also haven't this problem.
View 14 Replies
View Related
Jul 16, 2011
How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.
View 7 Replies
View Related
Apr 12, 2010
I cannot move a my file into my archives directory in my bash scrip.
View 7 Replies
View Related
Oct 10, 2010
I'm working with a dual-boot laptop running Ubuntu 10.0/Windows 7 and a Debian 5 VPS while the OS's shouldn't have much impact on my question.
What I would like to do is create a html page that I can upload to my VPS which lists all of the files/folders on my local 2TB hard drive (Specifically media such as Movies, Music, TV Shows...). The media obviously will not reside on the server, but I would like to at least have a list which will allow me to select, for instance, a bands artist so that it redirects me to the albums in the directory below.
Ultimately, I'm looking for Open Directory Browsing without actually having the media on my server. I have been attempting to create something to this effect using lynx, however, I'm not sure if it can be done with this command or if it's even possible for that matter.
View 1 Replies
View Related
Oct 3, 2010
Many years ago, I converted a portion of my files to an arbitrary format with a specific extension. i no longer desire to have them in this format and i would like begin the process of replacing them because conversion is not an appropriate solution. unfortunately, they are mixed in separate folders of the same root folder with files in my current format of a different extension. I feel it would make this process easier if I were to move every folder that contained a file with the undesired format to a separate root folder. The files are stored on a Linux server and shared via samba. How can I do this with a couple of commands or a script? I am open to other suggestions as well. I want to avoid time spent editing text files. Ultimately, I'd like a command that produced a list of full paths for folders, sorted by the number of levels would be a nice touch. A list of all of the files is clearly not what I'm looking for.
View 2 Replies
View Related