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

learn more… | top users | synonyms (5)

15
votes
4answers
22k views

What is the command line statement for changing the System clock?

Is there such command for changing the System clock' date and time? For example: The current date and time is January 1, 1970 22:30:59:980 where 59 and 980 refers to the seconds and millisecods ...
11
votes
2answers
11k views

What does this command mean: awk -F: '{print $4}'?

Please explain what does following command mean: awk -F: '{print $4}'
3
votes
3answers
9k views

Not able to install *.run file in Ubuntu? [duplicate]

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI. I have to install few softwares in Ubuntu which are as follow: MPLAB X IDE version 1.90 XC8 Compiler and ...
1
vote
1answer
11k views

Trying to update but not enough space on boot (answer here) [duplicate]

The error message I get suggests "sudo apt-get clean" I try running it but nothing happens. Just get back to the prompt. Is there any other terminal commands I should try to clean temporary files ...
3
votes
1answer
201 views

Shell script errors?

I am trying to create an interactive bash shell script to make it easier to install and configure a postfix mail server,But have them still enter the commands and then the shell run them, but I keep ...
0
votes
1answer
2k views

command line, no desktop environment

I have installed an ubuntu in a computer with windows, but when i open the computer with ubuntu, there's no desktop environment, only a command line. I've even written my username and password on ...
0
votes
2answers
293 views

Python Errors when Installing LogMeIn Hamachi

When I go to install the beta version of LogMeIn Hamachi for Linux using the .tgz file download, I get this error when I run the install.sh file: Traceback (most recent call last): File ...
0
votes
1answer
1k views

How to copy files from multiple directories? [duplicate]

I have a bunch of text files in several directories I want to copy into another. What can I do, instead of going inside each directory and cp *.txt in this directory?
3
votes
1answer
934 views

problem running a command with incron

I try to print some ODT documents from LibreOffice 4 (Ubuntu 13.04 OS) to a Toshiba e-Studio 167 printer. When the document has fonts like Liberation Sans, Liberation Serif, etc., I get a printed page ...
0
votes
3answers
6k views

vmware-vix vmrun command error: “unable to connect to host … version not found”

VMWARE-VIX command "vmrun" failing I have checked in the online resources of the product documentation, and in discussion groups where other people experience the same issue. I have the following ...
0
votes
1answer
1k views

why sudo gem install fails but gem install succeeds?

I simply do sudo gem install sqlite3 and have response: sudo: gem: command not found Then I do gem install sqlite3 and it works. Where is the problem with sudo ?
0
votes
0answers
20 views

Script or Command Line for enabling/disabling touch pad [duplicate]

Is it possible for someone to help me out with my problem ? I would like to know whether it is possible to enable/disable touch pad using command line or via scripting ?
2
votes
1answer
179 views

Trying to understand my first server set up

I am trying to set up my first server and stack. I spent a week trying to do it on a virtual machine but could never get the ports to forward correctly so today I just dedicated the full machine. I ...
5
votes
4answers
301 views

Find what packages are installed from a repository

I'm trying to find what packages I have installed from a repository using terminal commands. I found a post somewhere saying I could use aptitude search "?origin (<repository>) ?installed", but ...
2
votes
1answer
509 views

How to keep the coloring in bash when using `sudo -i`?

I have changed PS1 variable in /etc/bash.bashrc to PS1="\n\[\033[0;37m\]\342\224\214\342\224\200\$(if [[ \$? == 0 ]]; then echo ...
7
votes
4answers
4k views

How to auto-mount from command line?

How can I trigger an automount from the command line? By "automount" I don't mean fully automatic mounting, but getting a list of available devices and then selecting one and having it end up as ...
3
votes
1answer
122 views

Why can't I restart my maia service?

I have built a mail filtering server on Ubuntu 12.04 Server using Postfix, SpamAssassin, ClamAV, and Maia Mailguard by following this guide: http://www200.pair.com/mecham/spam/ubuntu1204-maia.html ...
0
votes
0answers
27 views

Anything that converts GUI actions to commands to be sent to remote ubuntu via SSH? [duplicate]

Is there anything that would allow me to run a GUI on client side of SSH(ie on windows)& that would convert the GUI actions made to corresponding commands to be sent via SSH client(in my case ...
28
votes
4answers
13k views

How to get out of “sudo -s” command in Terminal?

I entered sudo -s command in terminal, and the it changed from shameek@shameek-K55VD:~$ to root@shameek-K55VD:~#. Now when I click on the close terminal window icon it says, "There is still ...
0
votes
2answers
1k views

What is the answer to “are you root” when installing packages? [duplicate]

What is the answer to "are you root" in Ubuntu 12.10. I was installing the restricted extras for the 12.10 when I got this message after typing my password. I typed yes and now all I see are y in the ...
2
votes
3answers
477 views

Why're two separate panel icons, when opened, grouping under the same icon

I have two separate .desktop files locked to the panel. Both of them opens terminal windows and runs a series of commands (with user input). Trouble is, while one is opened already, opening the other ...
0
votes
2answers
81 views

command line not working

after I initially installed ubuntu , I can run 'll' in my terminal. But after I checked a "Run command as login shell" in terminal preferences I cannot run "ll" command any more in terminal. ...
3
votes
2answers
56k views

Copying file from folder 1 to folder 2 in terminal

I am trying to move a text file from folder 1 to folder 2 via terminal. I'm doing this for a school project to show what actually happens when you copy paste. I'm doing cp/home/rits/desktop/folder1 ...
0
votes
2answers
673 views

Need help mass renaming files using command line that contain a certain string

I have about 200 files that are named like this: 01_-_Back_Alley_Uproar.avi 01_-_Bad_Luck_Cat.avi 01_-_Beep_Beep.avi 02_-_Broomstick_Bunny.avi 02_-_Bunker_Hill.avi and so on. I would like to ...
6
votes
4answers
41k views

How to run mysql command from terminal?

I have the following sql command which I usually run in phpmyadmin by selecting the database, then running it in the command window. DELETE FROM `wp_posts` WHERE `post_type` = "attachment" However ...
1
vote
1answer
367 views

How do I set up Qjackctl without using the terminal?

I can now open Qjackctl using the terminal. This is the code that I am using. pulseaudio --kill jack_control start This will open the program successfully. Then when I am finished I can type this ...
2
votes
2answers
150 views

Can anyone give me a list of commands I can enter in the terminal? [closed]

I am trying to understand Ubuntu more and I want to know more commands. Can anyone give me a list of everyday use ones? I would be super happy to learn anything else about Ubuntu too! Thanks!
0
votes
3answers
3k views

Using PuTTy to control server while port 22 is blocked

I can control my server command line using PuTTy on my home network (port 22). I can also do this remotely (port 22). Now the issue is that while I am at school, port 22 is blocked on the router so ...
3
votes
1answer
460 views

Remove output from add-apt-repository

I'm trying to write a shell script that will automatically set-up a LAMP stack for me. One of the lines I have in the script is: add-apt-repository -y ppa:ondrej/php5-oldstable >> ...
2
votes
1answer
215 views

bash doesn't think lxc is installed, apt thinks it is

This screenshot sums up my problem: I've run apt-get update, upgrade, purge, autoremove and then install again. No luck. Anyone know why this is happening?
7
votes
4answers
2k views

Replacement for mplayer?

I'm looking for a replacement for mplayer. mplayer is a audio player for the console. It works just fine when I use it like so: mplayer /path/to/audio.mp3 But when I start it in the background I ...
1
vote
1answer
128 views

For Loop Copy Command

I have a file, FileToCopy.pbs, that I would like to copy into multiple directories while changing a line called xxx in the file to the pwd location of the directory in which the file is to be copied. ...
6
votes
2answers
936 views

xubuntu xterm strange lag/echo issue with ssh

I have a xubuntu box and using its terminal everything is fine locally; but when I ssh to any server, the remote echo seems to be holding the last line until a key is pressed or the window is resized. ...
4
votes
2answers
7k views

Unlock login screen using command line

Is it possible to unlock the 13.04 Gnome shell login screen from a command line? A user is logged in to Gnome shell, I can log in to a console as this user. I also have root access. This is for ...
-1
votes
1answer
1k views

Unable to locate package openfoam221

While I am executing command **VERS=$(lsb_release -cs) sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt**/sources.list.d/openfoam.list"*][1]* I have a file ...
0
votes
2answers
47 views

App should be startable by its name in the command line

I already managed to create a .desktop file, moved it to /usr/share/applications, and can start my app from the dash where the icon appears. The app is started by the command "python3 /path/to/script" ...
0
votes
1answer
306 views

Command to know software version from terminal before installing [duplicate]

Am trying to install Bibletime v2.9.2. I purged v2.8, added the crosswire ppa (ppa:pkgcrosswire/ppa) to my software sources and did a sudo apt-get update. Since I don't have a fast internet ...
2
votes
4answers
339 views

Using if an AWK command

I have a file which contains many sub-sections each starting with [begin] and ending with [end]sample of which is shown below: [begin li1_1378184738754_91] ...
2
votes
2answers
143 views

root@mickey:/#su goofy && ssh goofy.com — why does this fail?

mickey (who is logged in as root) tries to use goofy's account to ssh into goofy.com. root@mickey:/#su goofy && ssh goofy.com however this fails to login goofy on goofy.com, instead: ...
1
vote
1answer
5k views

Unexpected EOF in a bash script, why?

I can't normally run sh scripts. It's confusing. I set the permissions to 777 and +x so it should work with the 'sh' command, right... But it's working very strange. For example this scripts works ...
1
vote
3answers
3k views

How do you login into /bin/bash automatically?

Im on 12.04 LTS and am doing to Ruby on Rails development. When I start up my terminal and type in ruby -v it will list my Ruby as 1.8.7. When I type in /bin/bash --login then ruby -v will list it as ...
1
vote
1answer
2k views

after instalation SML/NJ - No command 'sml' found on ubuntu 12.04 at terminal

I installed SML/NJ according this instruction Downloads Unix: The only file you need to download manually is config.tgz. Unpack, configure by editing config/targets, and install by running ...
2
votes
3answers
224 views

Where to find and how to use Ubuntu's version of Windows's Run dialog?

I'm switching over from Windows to Ubuntu, and I want to know how to get the functionality of Windows Run dialog in Ubuntu. In Windows, I just go to the Start button, and enter in the search field ...
2
votes
1answer
512 views

Is there any command-line RSS feed file grabber?

I'm looking for a command-line program for downloading files from a RSS feed. When I run this program, it should go to a RSS webpage, check whether there are new episodes, and if so, download them.
0
votes
1answer
317 views

Terminal doesn't show up in the launcher [closed]

Note: This question: Terminal does not appear in launcher is very similar, but it was for 12.04. Will those answers still work in 13.04? I recently reinstalled Ubuntu and I was updating/installing my ...
3
votes
4answers
1k views

How can I get unformatted ip address information in the shell?

I'm writing a shell script which needs information on the state of the network connection - the basic stuff like ip address, subnet, netmask and so on. I could just use ifconfig and sed/grep for the ...
1
vote
1answer
64 views

Terminal window terminates after double click or any text selection

I've installed Ubuntu 12.10. After a while the following problem appeared: Whenever I use mouse to select any text in the terminal (by double clicking or by clicking at one end of a text and ...
-1
votes
2answers
372 views

How would I execute a .jar using terminal, permissions only does Read and write, yet not execute

The file I am trying to execute is TechnicLauncher(1).jar I have tried looking in the permissions (as mentioned before) but it does not show where it can be executed. I have also tried looking in ...
0
votes
0answers
18 views

How to find program commands & Hardsubs on “Hand Brake” [duplicate]

I'm a newbie on ubuntu bare with me plz. Been using ubuntu for a few weeks now everything is working fine and im getting better and more familliar as I go but in the past I have been able to guess ...
1
vote
0answers
35 views

how to get same information of CLI in terminal? [duplicate]

as we all know that we will get some information like how many updates are available , login time etc while we login in CLI session of Ubuntu. is there any way I can get them in the Gnome-terminal ...