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

learn more… | top users | synonyms (5)

0
votes
1answer
7 views

Change 'eclipse' command to correct PATH

Currently I have eclipse installed on "home/gabriel/Programs/eclipse/eclipse" and I have already created the eclipse.desktop file with correct parameters and it's working fine, but I can't use the ...
1
vote
1answer
13 views

no targets specified and no makefile found. stop

I have a problem here u go, I want to install qtractor. I wrote in terminal cd /home/hl/Documenten/qtractor-0.6.0 after that i did write and enter: sh ./configure this is what i get. checking ...
2
votes
2answers
80 views

How do you cd into the first available folder without trying out the name?

I was recently in a predicament where I was inside a folder, and I wanted to cd to a sub directory folder. There was only one folder, inside this folder and it was a really long name. Home (I am ...
-2
votes
0answers
11 views

Python exception in Ubuntu terminal [on hold]

I'm using Ubuntu 13.04 and I get the following exception in my terminal whenever I type some invalid command in the terminal. My default Python version is 2.7 Fatal Python error: Py_Initialize: ...
1
vote
7answers
139 views

Count total number of files in particular directory with specific extension

I want to count the total number of files in particular directory that ends with ".mp4" extension. I am getting following command: ls -F |grep -v / | wc -l It count all the files in particular ...
1
vote
3answers
35 views

Need a shell script to find the latest file from a directory and move it to another on a weekly basis

I am new to shell scripting and I need some help with it. I have a requirement to move the latest expdp dump file from one directory to another where it will be maintained for 90 days and then ...
3
votes
2answers
161 views

Filter terminal command to text file

Problem: I have dmesg | grep ttyUSB command that has the following output: [ 7.648896] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0 [ 7.649091] usb 1-2: GSM modem (1-port) ...
0
votes
1answer
33 views

What does bash do with line 11 here?

The nature of the question here is broad enough truly to include Ubuntu. I was just picking around forums analyzing this and that and line 11 puzzled me. What I would like to know is, what exactly is ...
0
votes
2answers
28 views

Launcher for programs which need multiple commands to run

I already installed a program called CadFeko, and I can run it from terminal. To run the program, first I have to run this command . /opt/feko/6.3/bin/initfeko Then I can call the program by ...
0
votes
1answer
19 views

Is there a command line tool that allows online search for linux commands?

I know I can do man commandname to find the docs for a specific command, but many times I simply Google "how to list all installed packages sorted by size" or "how to find file by content in a folder ...
2
votes
0answers
11 views

tar delete progress not shown?

I was trying to use tar command , --delete option and met some problems. There are two things I don't understand: when using --verbose option with combination of --delete option, nothing shows as ...
3
votes
1answer
36 views

What command is executed when shutdown from the graphical menu in 14.04?

I understand that clicking "shut down" from the menu that comes up on clicking the cogwheel triggers the following command to be executed: dbus-send --system --print-reply --dest=org.freedesktop.Hal ...
3
votes
1answer
35 views

How to install “bought” softwares from the command line?

I love doing things the command-line way and need to install some proprietary softwares that are available free of cost but have to be "bought" from the software center: How do I install such ...
12
votes
5answers
372 views

Using cd command to navigate directories in Ubuntu which have special characters [duplicate]

When I want to navigate into directories having special characters in their names I get an error message. For example: aman@desktop:~/Aman$ cd !)e$!gn&(reate bash: !: event not found ...
0
votes
1answer
17 views

terminal lockup

my terminal looks ok, takes the first line of text but will not except any text after the enter key is pressed, it asks for password but, the prompt remains static as I try to input my password and ...
2
votes
2answers
178 views

Unable to run python file from terminal

I am not able to run this pyhton file from terminal. I have added the shebang #!/usr/bin/env python at start of the file. Am I doing something wrong? How can I run this file from terminal? EDIT: ...
1
vote
1answer
25 views

Can't set alias in zsh — command not found?

I'm trying to set alias conky-lua ="conky -c ./.conky/conkyrc &" so to start conky-lua. but when I source .zshrc it says command not found. A possible solution that I found on Stackoverflow is to ...
6
votes
2answers
426 views

Terminal prompt messed up after changing value of PS1

I carelessly entered a command in the terminal that should have been in a shell script: export PS1=$PATH:~/drush23/drush/ now in my terminal instead of this: ubuntu@ip-10-16-134-18:/home/ubuntu$ ...
0
votes
4answers
24 views

Ubuntu server: How to pipe / scroll through search results of a certain command

This is perhaps a really simple thing to do, however, after looking on the internet I can not find the fast answer anywhere. Suppose that I have this Ubuntu server running in a really small ...
2
votes
1answer
21 views

How to set nautilus width and height when running from command-line

Is it possible to set size of the window when running the program from terminal? For example I want to open current directory in nautilus : sylap@sylap:~/Desktop/omg/wtf/foo/bar nautilus . But I ...
0
votes
1answer
19 views

sudo: editor: command not found

I am trying to install gitlab on my server but when I run this command: sudo -u git -H editor config/gitlab.yml then I get: sudo: editor: command not found cn you guys tell me what is the wrong ...
0
votes
1answer
18 views

Exit terminal after scheduled command

I am trying to run Unison to sync my files locally. I want that to occur periodically, without the need of any interaction. For that reason I run gnome-schedule with the following command: unison ...
0
votes
4answers
25 views

How to open a file as you type out its directory?

I am new to using the terminal in Ubuntu and I was wondering how I could open the file "armored.jpg" as I type out the whole path. For instance, if I type cd ~/Pictures/Wallpapers/test\ x/ and then ...
1
vote
2answers
32 views

Attempting to setup Ubuntu 12.04 SSH Server: -bash: /etc/hostname: Permission denied

Attempting to setup an SSH-server running Ubuntu 12.04. Went to "HowToForge" to scout for potentially advanced or knowledgeable advice upon how to accomplish this, then I ended up running into a ...
3
votes
1answer
39 views

Remove lines of code from multiple files

I'm running a Web Server in a Virtual Box for testing some projects. And I noticed that some of the html files have this unwanted lines. I want these lines of code from multiple html/htm files ...
1
vote
1answer
39 views

Apt Terminal Progress Bar source code Ubuntu 14.04

I have read an article in OMG Ubuntu[0] about enabling the progress bar in the terminal. I'm browsing apt launchpad page [1] and browisng the code. Someone knows exactly where is the code for the ...
0
votes
0answers
21 views

Tutorial: How to run a script as root when user logs in [on hold]

I needed to run a script as root when I logged in. I figured out how to do this. In terminal, become root (sudo su). Copy your script to /usr/bin: cp script.sh /usr/bin Make the script executable: ...
2
votes
1answer
24 views

Ctrl+a doesn't return all the way back in terminal

I recently updated my prompt to look something like [user@User] ~/wroking/directory (git-branch) ↳ using the following code in my .bashrc source ~/.local/bin/git-prompt.sh ...
1
vote
2answers
35 views

Why does running this restore command take so long?

I'm using PostgreSQL 9.1 on Ubuntu 12.04. The development machine has 2GB RAM and it's a Centrino Duo. The Backup command is pg_dump and takes less than 5 seconds to run from the terminal. But my ...
0
votes
1answer
25 views

Is it possible to move the content view of terminal to the center while full screen the window?

I know I can use Ctrl + shift + '+' to change the font size. But now as my code are on show on the left-side, I want to move them to center. By drag the window I can do so, but that will show the ...
0
votes
1answer
43 views

Why is apt unable to find bitcoin-qt package?

When I run these commands: sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install bitcoin-qt I get this: E: Unable to locate package bitcoin-qt. I am writing it ...
0
votes
1answer
22 views

How do I make a Ubuntu VM that boots to Terminal but has GUI capabilities?

I have to make an Ubuntu VM (Virtualbox) to run python scripts (on windows hosts) utilising GUIs like pygame, tkinter and pythonwx (especially Tkinter for my legacy apps) Making a VM appliance with a ...
-1
votes
0answers
26 views

System settings doesn't work

Ubuntu 14.04 32 bit. System settings doesn't work. The System settings icon is missing from launcher. Is it possible to fix without re-install whole PC?
6
votes
5answers
419 views

How can I combine the find command with other commands so I don't have to navigate to the folder?

Sometimes I want to run certain files, but I don't want to navigate all the way to the folder. If I know the file name and find -name file_name.py only returns one result, can I just use that? For ...
4
votes
4answers
205 views

Ubuntu book/pdf that could help learn the terminal [on hold]

SO guys I’m new in Ubuntu world,right now I'm running Ubuntu 14.04 and I'm actually enjoying it, I'm coming from windows, so i want to ask u guys if there's any Ubuntu Book/pd f that could help me ...
4
votes
3answers
72 views

How to check the number of fields given to the `read` command?

I have a quick question relating to $# in the shell scripts. So, I can use $# at the command line to check the number of a shell script arguments given by the user. Example: # ./shellScript varONE ...
1
vote
1answer
34 views

Main user login has no gui

After I upgrades from 10.04 to 12.04 I cannot login to my main users account. Before the upgrade I had created another administrative user but had never used that account with the gui. That other user ...
-3
votes
1answer
22 views

What xargs does exactly?

I don't understand exactly what xargs does that's why I'm surprised why these 2 return different results: find ~/Downloads -iname *btsync* | ls -al find ~/Downloads -iname *btsync* | xargs ls -al ...
0
votes
2answers
36 views

Is it possible to know which recognized flavor I am running using terminal?

I have a set of functions in bash script which I want to run only on particular flavors of Ubuntu. For example, I want to run the following if I am running Unity: gsettings set ...
0
votes
0answers
32 views

How do I put my executable file on desktop [duplicate]

I downloaded a Linux version of Keepersecurity app and followed the setup instructions INSTALLATION INSTRUCTIONS: Create a folder to put the app $ mkdir KeeperDesktop Extract ...
3
votes
4answers
155 views

Add to path only sh file not a dir

I have a bin folder with a bunch of sh files. For example "server-run.sh", "server-stop.sh", "server-do-something.sh". And I want to run file "server-stop.sh" from anywhere. I could add this bin ...
0
votes
1answer
38 views

I accidentally killed all of my pulseaudio, now I have no sound.

Ok I made a mistake. I was investigating on how to make it so that I could listen to music or watch videos when I wasn't using qjackctl after being connected to the computer. This is the youtube video ...
1
vote
3answers
56 views

Why can't I install more than one application at once?

Why can't APT install more than one application at a time? Why does it need to exit before installing the next. I know with MS Windows you can install how many application at once. This problem is ...
-1
votes
1answer
30 views

Difference between move to trash and rm on the terminal?

I am using watchdog, a python package to monitor changes in the file system. The code works fine on Mac but it seems that the delete event is not monitored correctly in ubuntu. If I do a rm instead of ...
1
vote
3answers
71 views

Command that displays a string argument

What command will return whatever value is given to it. For example, you would enter the command followed by the string Hello World and it will print Hello World to the console. Does such a command ...
0
votes
2answers
37 views

Flash plugin download problem [duplicate]

So when I start installing flash player from software center , it gives an error saying that it couldnt download flash plugin. "The following packages requested additional data downloads after package ...
0
votes
0answers
15 views

Can I change the language format of Virtual Box using terminal?

Hi I'm new to this and have found Virtual Box is kind of understandable if you squint and keep doing double-takes. It's in English but written in greek or latin characters which is fun for a while but ...
1
vote
1answer
93 views

How to turn On and Off bluetooth visibility mode?

I already turned on my bluetooth by running sudo rfkill unblock bluetooth command on terminal.I want to turn on my blutooth visibility mode also, so that only my device will get detected.All i have to ...
4
votes
2answers
147 views

How to get the current upload and download speeds in terminal?

I want the terminal to output the current upload and download speeds of my network connection. I do not want to monitor the speeds in real time. I just want a "static" value to be able to write it in ...
0
votes
0answers
22 views

Terminal fails to connect to my shcool's wifi

I am trying to connect to Wi-Fi of my school. It connects to Internet, and I am able to run it on firefox but it fails to work on terminal. I get these outcomes: kadir@kadir:~$ sudo iwconfig eth0 ...