General :: Bring Cursor To 1st Char In Current Line (Command Mode)

Dec 4, 2010

Just in case someone can reply a silly question, I've quite forgot the vi/vim command to bring the cursor to the 1st char in the current line. I do remember that for bringing it to EOL is '$'.

View 14 Replies


ADVERTISEMENT

Programming :: Programing - Reading File Line By Line Then Char By Char In Each Line

May 29, 2010

I've never programed shell scripting.

Code goes like so:

I simply want to read a file "data.txt" line by line Then char by char and add them into a result var. The file is supossed to always contain numeric values

View 8 Replies View Related

OpenSUSE Install :: Any Substancial Difference Between Gnome Terminal Or Hitting 'c' To Bring Up Command Line

Feb 25, 2010

so the safest way to go about this is to assume I know nothing. I mean, I have a rough Idea of what a kernel is, no idea what a shell is, etc. I do consider myself computer savvy, but know NOTHING about linux and thats why I'm Diving in, hopefully not too much, this is just to give you an idea of what we're working with here.

After several install attempts I kept getting a blank screen. Whether it be black,white, or the default gnome desktop (without any icons, and simple things like ctrl+alt+backspace just doesn't work, or anything else for that matter) I was ending up with a blank screen. Driver for moniter....maybe....but I did succesfully install it once, and it worked like a charm...shutdown properly, and the next day after work...Boom, same thing after startup.today I started from scratch and re-installed....samething, until I hit the power button, went from the dvd(iso) and did a fail safe, now my resolution is much better than it was the first time..Actual questions.....what did I do to fix it when failsafe never worked before?

Is there a way to save these settings, so I don't run into the problem again, because I don't even want to turn of my computer at this point?If i'm trying to dive in and learn the command line actions, is there any substancial difference between gnome terminal or hitting "c" to bring up the command line?

View 9 Replies View Related

General :: Ubuntu - Bring An Open Window To The Current Desktop?

Aug 2, 2010

Let's say I have a program open on another virtual desktop. Is there a way I can bring that program to the current desktop through a script? The following command is the closest I can get:

wmctrl -a program This will switch to the desktop where the program is open and make it the foremost window. However, instead of going to the desktop where the program is, I want to bring the program to the current desktop. There is also this command:

wmctrl -R program The documentation says that this will do what I want, but it just does the same thing as the former command.

View 1 Replies View Related

General :: Wireless Networking - Install Broadcom Wi-Fi On Arch In Command Line Mode?

Jan 18, 2011

How do I install Broadcom Wi-Fi on Arch Linux in command line mode on an Acer eMachines EM350?

I assume that Broadcom STA should be the driver used and my USB key the way to install it with the help of another PC, assuming that I can't use a RJ45 ethernet connection on LAN.

View 1 Replies View Related

Ubuntu :: Put All Of The Current Directory's Files On The Command Line?

Feb 21, 2011

Is there an easy way to put all of the current directory's files on the command line, without tab-completing each individual one?

View 9 Replies View Related

Software :: Vim Command To Cut The Current Line And Append To The Clipboard?

Apr 8, 2011

Is there a vim command or sequence of commands that will append the current line into the clipboard? Given the example below:

4
5
3
1
2

Lets say I wanted to cut 3, 4, 5 (in that order) then paste them below 2 so that the numbers are in order?

View 1 Replies View Related

General :: Sed: -e Expression #1, Char 27: Unterminated `s' Command

Feb 3, 2011

I am trying the execute the following

#!/usr/bin/python
import os
os.system("sed -e 's#^(.*) (.*)0http://12#' t2.txt > t3.txt")
os.system("cat t3.txt | sort | uniq -c | sort -rn | head > t4.txt")

But I receive the following error message.

sed: -e expression #1, char 27: unterminated `s' command

View 1 Replies View Related

General :: Take A Screenshot With Current Cursor In GNOME?

Apr 25, 2011

When I take a screenshot in Ubuntu 10.04 (Gnome) using application "Take Screenshot" I get a screenshow this a default mouse cursor, but when i take a screenshot, cursor of mouse was another, for instance, cursor of mouse, which happen when window is resizing. How i can do screenshot with current cursor mouse, but not default

View 1 Replies View Related

General :: Appending To The Current Line In A File Instead Of Creating A New Line?

Apr 1, 2011

I am combining data from a couple different input files and creating an output file in a specific format. I notice that if I use the >> operator, information gets appended to a new line in my output file. This is useful, but if I'd like to append onto the CURRENT line, is there an easy way to do this? I've been googling around and see lots of complicated answers, nothing that suggests to me an easy way to do this. For example, if my output file looks like this:

b1a:] cat test
hello my name is
b1a:]

and I'd simply like to append "Bob", how can I do it? If I use

b1a:] echo Bob >> test
b1a:] cat test
b1a:] hello my name is
Bob
b1a:]

So what I would prefer is some command that would create the result:

hello my name is Bob

View 14 Replies View Related

Ubuntu :: Boot Into Command Line Mode?

Mar 14, 2010

EDIT: sudo /etc/init.d/gdm stop worked, not sure why it did not before. Sorry for the whining!

I need to boot Ubuntu into a non-x, command line mode. So I can install an nvidia driver for my new GeForce GTX 260 (I had a GeForce 7900 running on my Ubuntu system using the synaptic open source 185 driver for nvidia, but there is no driver except the one I downloaded just now from nvidia's site for the GTX 260 card). That requires there be no X session running, not even in a separate domain so to speak. There is no rescue mode in Grub2. Recover mode in Grub still boots an X session (Gnome). Alt+F1 appears to be a clean command line terminal but even that does not work because the nvidia driver installer script sees through that ruse and knows there is an active Gnome session. I tried sudo /etc/init.d/gdm stop and that did not work. I tried ctr+alt+backspace and that did nothing.

What can I do? I tell you some days linux is just too frustrating, about to just toss the baby with the bath water and go back to Winblows. Bought a new graphics card today, and here I am stuck not being able to even install the driver from a command line prompt, geesh.

View 3 Replies View Related

General :: Xterm - Go Onto Next Line When End Of Current Line Is Reached?

Jan 7, 2010

I am using xterm and sometimes when typing long commands into a small window, the command extends beyond the end of the line. On my old uni setup, when this happens, the cursor moves to the line below and you can see what text you have typed above however on my slack 13 setup, it overwrites the current line so you cannot see what you have typed! How can I set xterm to move onto the next line instead of overtyping?

View 14 Replies View Related

Fedora :: Access Machine In Command Line Mode

Apr 16, 2011

my fedora 14 did an automatic update tonight and on reboot it hangs displaying the "f" before the login in menu. The "f" is how I now feel.I do "fn+f2" as it is booting and it displays the sequence of loading items which report all is "ok" until it gets to "jexec services" and then it hangs.I do not know how to access the machine in command line mode and I am not sure what to do from here. I beleive the "jexec service" is a Sun Java item but I am not sure.

View 2 Replies View Related

Ubuntu Multimedia :: Phatch In Command Line Mode?

Jun 19, 2010

I installed Phatch today hoping to use it to reduce the file size of some picturesI took for work.I originally took the pics with 12 MP camera and now want to email them to a few peopleas smaller files.I found Phatch, but the docs under man phatch suck...Would anyone mind sharing an example of how to make the above changes to adirectory of pics. My guess is it starts: phatch -vkc --desktop [action] [path]

View 3 Replies View Related

Ubuntu :: System Automatically Going To Command Line Mode?

Aug 10, 2010

I am using ubuntu operating system, recently I am getting one problem when i am using the system . system is automatically going to command line mode it is asking user name and password. After entering user name and password I can able to use the system only in command line mode. Again when i restart I am getting gui as usual. Please help me to resolve the problem.

View 1 Replies View Related

Ubuntu :: Start Up Graphical Mode From Command Line?

Sep 19, 2010

Is it possible to instruct Ubuntu to start up (GUI) Graphical User Interface mode from (CLI) Command Line Interface mode? In the old days, you can type "win" in DOS to get into Windows - something along that line. Is it possible for Ubuntu in this case?

Yes, you can reboot to switch between the modes, but shouldn't there be a command for this?

View 2 Replies View Related

Ubuntu :: Computer Stuck In Command Line Mode

Oct 5, 2010

I just loaded up the Ubuntu 10.04 onto a newly scratch built computer. It went to the desktop after loading up and asking for my password. I then navigated to SYS>ADMIN>DRIVERS and preceded with download of recommended drivers for Nvadia G430 on-board display adapter. Restarted the computer to activate the new drivers and it's stuck in Command Line Mode. I tried Ctrl/Alt/F7 to escape, along with a bunch of other things but nothing will kick this puppy into the desktop.

View 4 Replies View Related

Programming :: How To Enter Mode Column From Command Line

Mar 3, 2009

I like running sql queries from the command line.

Code:
sqlite3 foo.db "select * from some table"
How can I specify

Code:
.mode column
at the command line?

View 1 Replies View Related

Ubuntu Installation :: Installing 9.10 Server - In Command Line Mode?

Feb 5, 2010

How to installing ubuntu 9.10 server in command line mode?

View 1 Replies View Related

Slackware :: Can't Find Pdf Reader That Works In Command Line Mode

May 13, 2010

So, in finishing my nFlux slack current edition.I have set it up for users to do certain things in console
and one of the things I want is a way to view slackbook-2.0 in runlevel 3 console.I cant find a pdf reader that works in command line mode and I cant figure out how to either convert slackbook 2.0 pdf into html/text Or find a slackbook download that is html or text?I tried converting it using pdftotext, which didnt work very well So, I need a command line pdf viewer or a converter that works good?

View 5 Replies View Related

Slackware :: Open Dolphin In Root Mode And Shortcut Command Line

Sep 11, 2010

In order to avoid switching user, is it possible to open dolphin in root mode. If yes, what is the command, and the keyboard shortcut to enter it.

View 3 Replies View Related

Fedora Networking :: Make The Ethernet Connection By Hand In The Command Line Mode?

Apr 12, 2010

The GUI for network configuration of Fedora is marvellous such that the configuration is almost fool-proof. But how can I make the connection by hand in the command line mode? It goes okay except the very last step. When I disconnect the eth0 interface from the right-hand side of the desktop GUI, I tested how to bring it back by command line but I failed. When disconnected, the ifconfig still shows the eth0 interface, with just the ip address portion changed.

I tried "ifconfig eth0 192.168.1.xx" to give it an ip address but the connection is still down even if the ifconfig shows an ip address for the eth0 interface. Then I tried "/etc/init.d/network restart" and "ifup eth0" and also "route add defaut gw 192.168.1.1" but none of these could accomplish the same work as a single click on the GUI to connect. I am very curious about how to do it in the terminal.

View 1 Replies View Related

Ubuntu :: Open Evince Directly In Full Screen Or Presentation Mode From Command Line?

Apr 6, 2011

I need to execute evince from command line or from a shell script and open it directly in full screen, or start some program for presentation.

I mean:

$ evince (this opens evince)
$ evince /dir1/dir2/file.toview (this opens evince and the file.toview but not in full screen)
$ evince /dir1/dir2/file.toview 'in mode presentation'

View 1 Replies View Related

General :: Bring Back The Command Prompt When Running An Infinite-loop Containing Program?

Jan 13, 2010

When running a program that has infinite loops in the terminal , how to bring back the command prompt ? ( I'm using Fedora core 5 )

View 7 Replies View Related

General :: Get The Cursor Position Line At The Mid Of The Windows In Vim?

Mar 28, 2010

Suppose the cursor position line at bottom or top. What's the vim command to get the cursor position line at the mid of the windows in vim?

View 5 Replies View Related

Slackware :: Slackware Current Installpkg Line 59 Rev Command Not Found

Feb 28, 2011

First time I've done this in awhile Upgrading my Slackware64 -current VM, following the standard routine that has always worked in the past -

Code:

slackpkg clean-system
slackpkg install-new
The clean-system removed 2 packages -
util-linux-ng
eggdbus

Installpkg will no longer work, complaining that the rev command is not found. The problem hit with the removal of util-linux-ng. I cp'd util-linux to ~/. Extracted with tar and executed the doinstall. Fixed.

View 4 Replies View Related

General :: Vi Editor - Move Cursor To A Specified Line Number?

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

Ubuntu :: Error Line 1: Char 1 Whitespace Or Empty File

Jun 16, 2011

Greetings, I have installed a VMware host on Windows 7 64bit and followed with a 10.04LTS 64 bit guest install. Everything went smooth. I have used VMware before, but the other way around.. Linux host and Windows guest.

So this time I am installing the VMWare tools on the guest, ubuntu 10.04, but it seems to be failing. The vmware tools install ran fine the first time with no errors, but I was getting the follwoing error after logging into the Ubuntu guest afterwards.

Could Not Apply the Start Configuration for Monitors
Error Line 1: Char 1 Whitespace or empty file

So I re installed the VMware tools once again, but still the same.

I am hoping that someone here has come across this before and hs a workaround. I don't think the vmware tools was installed correctly.

View 1 Replies View Related

Ubuntu :: Commad Line To Bring Up Monitor Resolution Change

Jun 6, 2010

I mis-clicked and now my monitor resolution is WAY too high. I could fix that by re-clicking, but the menu to bring up the screen I need to click is off-screen.By blind clicking I got a command line window. Can anybody tell me the command line to bring up the system preference for monitor resolution?

View 2 Replies View Related

Programming :: Fixing C++ Invalid Conversion From Const Char* To Char?

Mar 4, 2010

m getting the following error when trying to compile:Quote:

$ make
g++ -march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"undelete"' -DHAVE_SVDRP -I../../../include undelete.c

[code]...

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved