Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (6)

2
votes
1answer
7k views

CTRL+ALT+T not working

I'm using Ubuntu 12.04, and till day before yesterday, the shortcut was working perfectly. But when today I pressed it, it didn't open terminal. The terminal app still works. I am on GNOME3 3.4.2, and ...
0
votes
1answer
88 views

Is there an alternative for 'ppasearch' in newer versions of Ubuntu?

Is there an alternative for ppasearch (command-line app) in newer versions of Ubuntu? ppasearch is only avaiable for 10.10, 10.04 and 9.10.
0
votes
1answer
137 views

How to make backspace work on ubuntu 13.04

I have recently updated ubuntu from 12.10 to 13.04. Now i observed that Backspace is not working for folder(Up and Back functionality). I just found that ubuntu has decided to use alt + (left right ...
1
vote
1answer
68 views

(two part) Do i need a bootable usb to install ubuntu 13.10 on a os-less computer? and if i do, how do i create one on my mac?

i'm fairly sure i need a bootable usb for my new self built computer, but i'm not 100 certain, so i'm asking. and as for how to make a bootable usb, i have a usb in FAT 32 format, and i got stuck on ...
0
votes
2answers
487 views

Using wget to retrieve files from autostart downloads

So I'm making my own document of codes to run after a fresh install of Ubuntu 13.10 and I want to try and keep everything in the command line (as opposed to having to open a browser to download ...
-1
votes
1answer
122 views

Multiply 2 array index variables shell programming [closed]

How do i multiply 2 array index variables given the following foo=(1 2) bar=(0.1 0.2) foobar=$((foo[1]*price[1])) # this is wrong echo "$foobar" Current output : 0 Correct/Expected output : 0.4
13
votes
7answers
7k views

How to get a list of all the commands available for Ubuntu?

I want to start using the terminal more often, but I don't know what are the different commands available to me. Is there a way to list all the different commands that I can make use of?
2
votes
2answers
53 views

Independence between sudo and the instruction it receives as an argument

I don't understand why the directory dir1 isn't shown with the same colour. Although this may look unimportant, it seems to me that this is a violation of the so oftenly mentioned principle of ...
2
votes
1answer
2k views

How to download torrents from the command line?

I want to download a large file through bittorrent on my server. For doing this, I downloaded the transmission command line client and the relevant .torrent file on the server, and then I run the ...
0
votes
1answer
538 views

weird shell script error: invalid option return: usage: return [n]

This programme checks if a certain book title exist by matching user input of book title and book author. function removebook_option() { echo -n "Title : " read title_input2 echo -n ...
5
votes
3answers
1k views

How do I Enable/Disable compiz plugins from command line in Ubuntu 13.10?

I followed this question, but the answer given in that question only works on Ubuntu 11.04 and 11.10 and no longer works on Ubuntu 13.10. So my question is, how do I enable or disable a particular ...
1
vote
1answer
236 views

Terminal in Cat Mode says -s: command not found

awhile ago i was installing something and doing some stuff with terminal, and i think i messed it up. on the terminal app it says "Terminal - cat - 80x24" then inside terminal it says: Last login: ...
5
votes
2answers
1k views

How do you enable tap-to-click via command line, with `xmodmap`?

You can use this to reverse scroll direction (natural scroll): xmodmap -e "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" You can also set it back again with xmodmap -e "pointer = 1 2 3 4 5 7 6 8 9 10 11 ...
2
votes
3answers
97 views

How to recover files truncated by `>`?

I had a text file hello.txt which contains about 100 lines.I accidentally deleted all the lines by running echo > hello.txt Now i want to recover all the 100 lines.Is there any way to recover the ...
1
vote
4answers
979 views

how to pass array into function and updates to array are reflected outsite function

I am trying to pass a array into a function and whatever changes made to the array is reflected outside the function function update_array() { ${1[0]}="abc" # trying to change zero-index ...
1
vote
1answer
1k views

Terminal alternative to gnome-keyring [duplicate]

I am currently using gnome-keyring to manage my ssh passwords. I would like to know if there are any alternatives to this, which I can use in situations when I don't have access to the UI. I am ...
2
votes
1answer
103 views

Terminal single command resource usage

I cant find way to monitor single linux terminal command. I want to monitor this command: php index.php parse The problem is this process works too short to get pid so I hope there is something ...
1
vote
1answer
188 views

How can i automatically execute a script after automatic boot?

I've recently opened a VPS running Ubuntu server 13.10 x86 (with no graphical desktop) in order to run a game server. Since it's a VPS there's a risk that the node may crash when I'm not watching. ...
1
vote
1answer
815 views

what this command do ? ls /usr/bin | grep ”man” | sed ”s/man/###/”?

I have a question I want to know what this command do ls /usr/bin | grep ”man” | sed ”s/man/###/” I have use this command and show me everything with ###, but I dont know whats mean. I hope ...
1
vote
1answer
360 views

Rerun missing command with apt-get [duplicate]

When I run a command on a new machine (or install that I'm testing) I often find that the package needs to be installed first. This leads, for example, to the following sequence: > colordiff The ...
0
votes
2answers
1k views

How can I see the memory occupied by a file and folder and also entire directory from terminal?

I'm having some files and folders in the "My Documents" directory. What are the commands to see the size of a file and directory in a terminal?
11
votes
5answers
10k views

What does >> or double Angle brackets mean? [duplicate]

It seems like such a simple questions but I cant find any resource regarding it In C/C++ , it means to store the read in a value from command prompt and store it inside a variable , How about in ...
0
votes
1answer
189 views

Using Crossover to install E-Sword

Downloaded Crossover application. Attempted to install it but received the following error: On 64-bit flavors of Debian and some Ubuntu variants, first open a terminal and run 'sudo dpkg ...
4
votes
2answers
267 views

'locate' command in terminal. Why is it so fast?

Searching a keyword in linux terminal using the locate command gives answer in a short time. What is the search algorithm used?
1
vote
2answers
906 views

How does fdupes determine which file to keep and which to delete from set of duplicate files scattered in storage disk?

I just downloaded fdupes and was giving it a try. I am curious to know how the software goes about to determine which file it will put first when multiple files are found. I am running: Distributor ...
4
votes
2answers
702 views

How to set the timeout for sudo asking for password?

For example if i run sudo apt-get install vlc,it asks me to enter the sudo password. If i not enter the password for sudo it [sudo] password for avinash: remains for longtime. How do i set this sudo ...
0
votes
1answer
25 views

Cannot make shell file excecutable

read-only file system error when trying to make shell file excecutable. FIX?
0
votes
1answer
512 views

Keyboard command for gnome-control-center ubuntu 13.10

As much as I tried to figure this out I simply cannot get this to work out the way that I want it to. Now the usual commands in the terminal command line would be gnome-control-center now normally ...
1
vote
1answer
5k views

How I set the home directory and shell for a new user? [duplicate]

I am using 12.04 on my server. I created a new user using adduser me and passwd me and added it to sudo when I login this is what I see. Could not chdir to home directory /home/me: No such file or ...
1
vote
0answers
106 views

AMD Underscan on CLI

SO I installed Ubuntu 13.04 minimal from a server installation. CLI worked fine, and I added Xorg and XBMC so I could have a CLI server, but the option to start X and login using XBMC-Live. I have an ...
2
votes
1answer
430 views

Remove startup password when default login is command line

When I boot up my computer, it goes straight to the command line. I modified /etc/default/grub file from GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to quiet splash text. Can someone please explain ...
1
vote
3answers
455 views

How to use backspace in terminal in ubuntu 13.10..?

I am using ubuntu 13.10.I cant able to use backspace in terminal. While using backspace it just passed through the letters.Please help me...
1
vote
1answer
197 views

Creating DSL connection from terminal

I am using Ubuntu 12.04. I use DSL connection and I configured it using the most common approach, using the network manager in the upper panel. But recently I am facing problem. Though my internet ...
9
votes
2answers
28k views

Is there an easy command line command to check disk space? [duplicate]

"Command line" commands are very helpful. Is there a command to display the memory of each partition of my drives..?
0
votes
1answer
770 views

Some image files won't be displayed by Apache, returns 500 error (file ownership/permissions)

I just copied all my files from one Ubuntu server to another, and everything works fine, except that Apache returns a "ERROR 500 - Internal Server Error!" on image files that on the old server was ...
0
votes
1answer
625 views

Using Serial Port as a Terminal Interface with VMware?

I have the following configuration setup: Ubuntu 12.10 os a virtual machine using VMware. Host OS is Windows 8.1 Terminal Program is Putty as a Serial Terminal in Windows 8.1 Process: Ubuntu VMware ...
1
vote
2answers
128 views

banshee --next from virtual console

I would like to do banshee --next, or just control banshee in general, from a virtual console (e.g., the one I get when I press Ctr-Alt-F1). Is that possible? How can I do it?
1
vote
1answer
58 views

Tried to disable GUI now neither GUI or TEXT loads

I am brand new to Ubuntu Server (or even having a server). I installed Ubuntu Server, installed a GUI using sudo apt-get install ubuntu-desktop so that I can check for other software graphically. ...
3
votes
1answer
7k views

how to copy and paste a file

i want copy and paste a file name of the file is mkoctfile.m and is currently in this path /usr/share/octave/3.2.4/m/miscellaneous/mkoctfile.m i want to paste it in the following path ...
0
votes
0answers
68 views

How to make a command execuitable without root previlages? [duplicate]

I want to make some commands,such as ntpdate,shutdown etc, to execute without asking me for a password or without using "sudo" for "all users"(even normal users who have no sudo privileges) . I want ...
0
votes
2answers
3k views

bash: No such file or directory

I've written a simple C program that uses the GTK+ visual interface (I can post the code if it's relevant). I can compile it without erros or warnings using: gcc -c s9p2.c pkg-config --cflags ...
1
vote
1answer
73 views

How do I switch desktop session users from a shell script?

I've got 2 users, foo and bar. Currently if I'm logged in as foo, I can select bar from the menu in the top-right of Unity, and since bar has no password set, I switch straight to bar. However, I ...
0
votes
2answers
1k views

How do i put my password in to terminal? [duplicate]

How do i figure out/input my password into terminal? I just started using Ubuntu, and I want to get Netflix on it. When I put in the command line for that, it asks for my password,but I am unable to ...
2
votes
1answer
421 views

Processing clipboard text through a script in between copy and paste

I want to intercept the paste event and run any text through my script. Use case is like this (assume I have a script somewhere which accepts text on stdin and turns 'world' into 'potato', writing on ...
1
vote
2answers
124 views

Command history (previous and next command) in ngspice

This is driving me nuts. I am using ngspice in interactive mode on Ubuntu. I expected the up and down arrows to scroll through previous commands just like in bash or pretty much any CLI ever. However ...
3
votes
2answers
967 views

How to create a deb package for a python3 script?

I have one Python file, main.py. I would like to be able to make a .deb package from it, and then be able to run main.py by typing the package name from the terminal. It is written in Python 3, so the ...
3
votes
1answer
495 views

32bit program on 64bit Ubuntu fails when using linux 32 before setup.sh

When I try to install a 32 bit program on ubuntu 13.10 64bit it falis. My command is as follow: linux32 ./setup.sh Output is: The setup program seems to have failed on x86/unknown Fatal ...
1
vote
1answer
120 views

Cannot install or update through Terminal Get this Error (in the body of question)

Everything was working fine but now every-time I run sudo apt-get install (program) or even sudo apt-get update I get this message: E: dpkg was interrupted, you must manually run 'sudo dpkg ...
1
vote
2answers
111 views

How to remove the lock automatically after pressing ctrl+z?

For some reason we terminate the installation of package via apt-get by pressing ctrl+z,it creates a lock file inside /var/lib/dpkg/ and /var/cache/apt/archives/ directories. And after that if we ...
0
votes
2answers
56 views

locate cmd how to ignore the windows directory

i run a Ubuntu box on my PC, and the Ubuntu is install as dual-system, i mean the PC have a Ubuntu and a WIN7. So i use the locate command to find a file, it often list a lot files existing in ...