TRENDING NEWS

POPULAR NEWS

Backspace Not Working In Terminal.

How do I fix the annoying arrow key and backspace problem in Cygwin?

Hi Guys! This is a general problem many people face who newly install Cygwin on Windows. This is quite annoying and there is a simple fix which saves a lot of head ache. So, Let's start.Firstly, open your cygwin terminal and type vi ~/.virc and press enter. This opens the vi editor in command mode. If you are not in command mode press escape to enter the command mode. Now type :set nocp and press enter. Now, type :set bs=2 in the same mode. After this step enter the insert mode by pressing i and enter the following lines.set nocompatibleset backspace=2 Now close the virc file by typing :wq in command mode. Now you are set to use your vi editor with the arrow key and backspace problem fixed.Happy Coding :)

I installed Ubuntu using VMware workstation but I cannot write C programmes, even though I updated. What should I do?

First of all you need to install c compiler in your Ubuntu if it is not there for that run "sudo apt-get update" then "sudo apt-get install build-essential" in terminal. After that you can write your c program in any text editor( inbuild gedit in ubuntu is good enough for this) .Save your program as ur_program.c file. Go in terminal and locate your folder where you saved it earlier and type "cc ur_program.c -o any_name" and then run it as"./any_name".Or you can install an IDE (i prefer Anjuta).For installtation of anjuta type "sudo apt-get install anjuta"  in your terminal and directly compile and run it from there.

How do I clear the terminal in a python program on a mac?

The other answers just hide the screen, anyone with a scrollbar can view it.If you want to erase the previous line, output:"\b\r \r"
(backspace, carriage return, eighty spaces, carriage return)Depending on the terminal you’re using, you may need to instead do:"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"
(eighty backspaces, eighty spaces, eighty backspaces)Note that neither will work on terminals which don’t support backspace, but the mac terminal should. The second example works on terminals that output carriage returns as line feeds, I’m not sure how Mac handles them.Terminals that are more or less than 80 characters wide will have issues. Adjust the number of spaces and backspaces accordingly. If python provides a method for determining the size of the terminal (I’m not a python developer, IDK), even better.

When I am writing a program in Terminal, when i need to remove the characters using the backspace key it doesn't work. Instead, it moves the cursor backwards without removing a character. I am using the Ubuntu 12.04 version?

From what I am able to get from the question, you are facing this issue when you are using the 'Vi' Editor.So, not deleting of character when backspace is pressed is a feature of the Vi editor. To delete a character in Vi,First, press backspace. The cursor will move back a character. Now you have to press 'Esc' key to clear the character under the cursor.This is how Vi editor works.But Linux being what powerful thing it is will allow you to change this default behavior. To do this,Open a terminal by pressing Ctrl + Alt + T or opening it from applications menu.Make sure your are in the $HOME directory by entering       cd ~/Then create a new configuration file for Vi by typing,     gedit .vimrcThis will open up a Text Editor with an empty file. Now type in the following on two separate lines and save the file    set nocompatible    set backspace=2Save the file and you're done. Now open up Vi and it will delete characters when you press 'Backspace'Thanks for A2A

Why can't I type anything in the CLI in the routers?

When you type a password into a Cisco router, the characters are not shown as asterisks or dots, but rather simply not displayed. This is to ensure that anyone watching your screen can not see how many characters your passwords is in length.

That being said, the problem is most likely an error in the configuration of the password. I don't have access to the labs you're referencing, but you would configure a password like this:

conf term
line con 0
password cisco123
login
end

The above example assumes that you have no AAA already configured. If you don't know what AAA is, then be assured that you don't have it configured. :)

I installed ubuntu 13.10 on windows 7 by using vmware workstation .Im facing following problem in vi editor my backspace is not working and I cant install packages even though I logged in as a root?

First of all, never log in as root.  Use sudo.  The people who say otherwise are either joking or inexperienced.  Some programs will even refuse to run as root.Check your networking.  You likely lack an internet connection within your VM.  See if you have an IP address with "ip addr".  If it's just down, try "sudo ifup eth0".  You may be lacking an interface altogether, though, or VMware may be misconfigured.  I've never had any problems getting networking to work in VMware Workstation on 13.10 with bridged networking and NAT.  If you're choosing something other than bridged networking or NAT, you probably don't understand the option that you chose.Just a tip: vim is a lot better than vi.  Using vim may fix your issue.  Make sure your terminal emulator or SSH client is sending ^? for backspace, not ^H.  If Ctrl + Backspace works the way plain Backspace is supposed to, but Backspace alone doesn't work, it's probably reversed.  vim understands both ^? and ^H, so you shouldn't have that problem in vim.In vi and vim, backspace doesn't delete line breaks.  In other words, you can't delete or join lines with backspace.  If you want to change this, add "set backspace=indent,eol,start" to your .vimrc file.  If none of that fixes it, check the vim wiki: Backspace and delete problems.

Why is my slash key not working on the command prompt? What are the possible reasons?

I've never faced this problem, so I do not have a first hand experience in this. Here's what you can try.To get backslash ( \ ) if the backslash key is not working:Press keys 9 and 2 while holding down Alt key.To get frontslash ( / ):Press keys 4 and 7 while holding down Alt key.Hope this works.Source link: Backslash Key Problem - AnandTech Forums

How do I chat with a friend on another computer via terminal?

Finally something I can answer!This is fairly simple and quite funny once you realize how simple it is.You'll need:1 SSH server that both can connect to (if it is on yours or the PC of your friend, the local user does not need to connect through ssh)You need "screen" installed on the computer where the SSH server is running (Debian -- Details of package screen in jessie) (can be found in most repositories)One common username on the computer that has the SSH serverNow for this example let's assume we have User A and B with their Computers A and B respectively.A has running the SSH server and A opens up a terminal session with the username A. A types in the command "screen". An empty shell opens up. Now B connects via ssh to A's computer using the same username A used (ssh A@A.com). Now that B has a terminal session on A's computer running with username A, B will type "screen -x" to attach to the same session A has launched before. Now if A types something B can see it and vice versa as the session is shared. Now you can use a plain NANO or something like: terminal-chat

Internet Exporer & FireFox Keyboard Shortcuts ???

On firefox, you can input .net addresses using SHIFT+ENTER; I haven't found a way to enter .co.uk addresses :(

Thanks Ganesh for link above!

solution:
"You can actually change the www and .com to whatever you like (handy when you live in .co.nz!!!)

Go to about:config filter on prefix (for www) and suffix (for .com) and change the value of those preferences"

What is the difference between SSH key pairs, PGP key pairs and SSL keys? What is the intended use of all the three key pairs?

SSH, PGP, and SSL key pairs are all based on the Public-Key Cryptography Infrastructure (PKI) and its asymmetric cryptography structure - the public-private key pair.The only difference between them is their purpose:SSH key pairs – encrypt and authenticate remote connectionsPGP key pairs – encrypt e-mails, disks, arbitrary files to securely sign or delete them.SSL key pairs – encrypt TCP/IP communications and secure browser-server connections (used for SSL Certificates).For more details on SSH, PGP, and SSL, check my answers to “What is the difference between SSL and SSH?” and “Can the term PKI be used to express a public key infrastructure without the use of Certification Authorities?”.

TRENDING NEWS