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

learn more… | top users | synonyms (5)

0
votes
1answer
14 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
19 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
23 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
35 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
28 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
18 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
22 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
32 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
23 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
33 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
20 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
18 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
388 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
189 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
69 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
32 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
28 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
30 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
147 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
33 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
51 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
68 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
36 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
12 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
79 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
141 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 ...
6
votes
6answers
439 views

How to get Ubuntu distribution's full code name?

$ lsb_release -c Codename: trusty $ cat /etc/issue Ubuntu 14.04 LTS \n \l $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04 ...
1
vote
1answer
17 views

Error in connecting CMake to FreeBASIC compiler. CMake Error: The source directory does not appear to contain CMakeLists.txt

I was in the middle of installing Allegro to help me compile C++ games and animations. I needed to install a Make program to get the ball rolling. I installed CMake and tried to connect it to my ...
0
votes
0answers
31 views

Record audio + video using ffmpeg

I am using the ffmpeg command to record the audio and video. Following is the command, I am using to record the audio: ffmpeg -y -f pulse -name 'USB Soundcard 0' -i ...
1
vote
1answer
22 views

Alternative to the CLI command “more”

I have search google over and over looking for an alternative to the command more. Something that uses ncurses, etc. I know that something exists as I had it on my laptop before I upgraded to 14.04 ...
6
votes
2answers
125 views

How to play a sound after a command has finished its execution? [duplicate]

I want to be noticed after a command has finished its execution. And I was thinking that if I hear a sound is a good idea. For example, because I have a slow internet connection, the following ...
2
votes
1answer
43 views

Is there any user friendly alternative to screen?

I am running Ubuntu Server and want to have multiple terminals. Screen works fine but..it is not user friendly. I mean..after pressing Ctrl+A you get no notification of you being in command mode, in ...
3
votes
1answer
38 views

How to go into a directory from an archive using the terminal?

Like I use cd to go into a normal directory, how to cd into a directory from an archive (compressed file, such as .zip, .tar.gz, etc.) and see its content using the terminal? Is this possible?
1
vote
1answer
18 views

Missing libriaries for a GUI .bas test and how does one get them? ld: cannot find -lX11, -lXext, -lXpm, -lXrandr, -lXrender

I was testing out FreeBASIC compilier for its ability to make interactive software (in this case, a simple game called Asteroids.) The .bas code for it is right below: ' ÜÛÛÛÛÜ ...
-3
votes
0answers
24 views

Which command should i use in unix? [closed]

i have one a question.Which command should i write ? $?? pwd /usr/home/sphinx
0
votes
0answers
12 views

mplayer in mobile ubuntu

can we play video by running 'mplayer absolute-file-path' in terminal of ubuntu smartphone ? Also any thoughts about providing gestures , transparent invisible buttons etc. to navigate in video as ...
0
votes
0answers
32 views

SSH Write Failed: Broken Pipe [migrated]

I used to be able to connect via ssh (terminal) with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: ...
0
votes
1answer
31 views

Mounted a windows file in ubuntu, can't access it through terminal

So I am 95% sure I mounted the drive(files) that I wanted from a Windows server to ubuntu. I followed the tutorial on http://www.howtogeek.com/howto/22518/how-to-mount-a-remote-folder-in-ubuntu/ and I ...
2
votes
0answers
40 views

How can I suspend the way that ubuntu does?

I would like a command I could map to a button or execute within my network. So far I know the command sudo pm-suspend but I could not make pmi action suspend work on either 12.04 nor 14.04 : Error ...
1
vote
1answer
38 views

How to edit /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts and similar files and why they can (not) be edited

I a trying to edit the following file (ls -alstr output): 0 -rw-r--r-- 1 root root 0 Apr 15 17:07 /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts Unfortunately, if I try to edit it with vim or simply ...
0
votes
1answer
16 views

Connect to other network to use git repo

I have used Gigolo to create a bookmark/mount for a drive that I named engineering. How would I be able to access this using the command line? When I click on anything under Computer I can find a ...
1
vote
1answer
37 views

One command for ls and cat functionality?

Okay guys, this is an experimental question warning! I often confuse cat and ls when quickly working on the console. Not because I forget their meanings, no. Just because I type without deeply ...
0
votes
0answers
11 views

Zeitgeist search from command line

I have a folder with a few hundred pdf files. In the past months I opened quite a few of them and would like to know which I actually opened. I know there is Zeitgeist which logs file activity but ...
0
votes
1answer
35 views

What commands go wild with wildcards?

Having read apt-get remove with wildcard removed way more than expected. why? (after making a similar mistake myself), I am significantly more cautious about using * in commands with which I am not ...
0
votes
2answers
35 views

Move images from sub-folders into new sub-folders

I have a folder composed of M several sub-folders, each of them containing some text files and N images (*.png) This is what the tree looks like: /parent/ /sub-folder1/ /data1.dat /data2.dat ...
2
votes
1answer
45 views

ufw firewall disabled - How to turn it back on?

I am using Ubuntu 12.04 and just recently noticed, that my ufw-firewall is turned [off]. I know It's turned [off] by default, but when I set Ubuntu up, I turned [on] the firewall with: sudo ufw, but ...
0
votes
2answers
53 views

Terminal history

I looking for the terminal history. Not only the command history that is showed by typing history but terminal processes within a command. That is, I want to record the output displayed by the ...