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

learn more… | top users | synonyms (5)

10
votes
3answers
956 views

How to open an application in terminal and detach it? [duplicate]

I opened Cairo-dock in my terminal with: open cairo-dock and that worked but if I close the terminal it goes with it. How can I keep it open regardless of the terminal?
0
votes
1answer
3k views

Configure Wireless Network 12.10 Command Line

Okay, so I've recently set up a server with Ubuntu Server 12.10 to run as a headless server. When I ran the OS installer/setup it gave me an option to immediately connect to a wireless network (this ...
1
vote
1answer
134 views

Control of terminal

I am relatively new to Ubuntu and especially to using terminal commands. I love the system and regret not having discovered it years ago. In playing around with it and tweaking my system (Ubuntu ...
0
votes
1answer
255 views

Just installed Ubuntu on my Nexus 10… how do I get to a bash terminal?

I just installed the Touch preview on my Nexus 10. It is not at all what I expected. I thought it would be just like my desktop; I'm not at all interested in the "experience"... all I want is a bash ...
2
votes
1answer
143 views

Delete lines starting with pattern from a file

I tried several commands: tr, sed but to no avail. Here's the file: > ... > ... > setEPS() > postscript('images/boxplot_default.eps') > ... > ... I want to delete those two ...
5
votes
4answers
5k views

what does adding sh do?

I'm really new to using terminal and I've been following guide blindly without knowing why is that there and what does it do..though this guides help me in installing the vmware player. this one ...
1
vote
1answer
380 views

Gnome terminal is not working properly

I'm new to Ubuntu 12.04 LTS. My problem is described below. My terminal prompt is the $ sign only. It's not showing like kaushik-kaushik-pc -$. My second problem is that when I try to become the ...
2
votes
1answer
81 views

Fail to log in Ubuntu for deleting my home folder

I moved my home folder("huangzhiwu") to /usr/share carelessly. Then after i noticed that ,i make a new folder named huangzhiwu in /home ,and moved all files from /usr/share/huangzhiwu to the new home ...
0
votes
1answer
2k views

get back command prompt after opening programs from terminal

When I launch any application from terminal, then the terminal gets locked until I close that application. What I want is just to use terminal for launching programs and then use the same terminal for ...
4
votes
3answers
4k views

what is the right way to shutdown ubuntu using the command line? [duplicate]

I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various ...
2
votes
1answer
3k views

Move files from one folder to another with same name

I'm new to linux, especially for ubuntu server and it's terminal.... I have such file structure: -im | |-t1 |-1.jpg |-t2 |-2.jpg |-second |-t1 |-3.jpg |-t2 |-4.jpg How ...
8
votes
2answers
866 views

How do I get passwords from the keyring in the terminal for usage in scripts?

When you have a LUKS encrypted drive in your computer, Nautilus or Nemo will show it under Devices as a drive with a little lock on it. When you click it, you need to enter a password. If you choose ...
6
votes
2answers
3k views

How do I change the current working directory to the Downloads directory?

How do I change directories to downloads, from the home folder, in the latest version Ubuntu 12.10? I tried cd /downloads, but it gave an error saying that there is no such directory.
0
votes
1answer
146 views

Refresh Unity UI Time By Command Line

I have a Ubuntu 12.04 desktop virtual machine ran by VMWare and having some issue with the GUI clock/time what ever it is called. The thing in the right corner showing the time. When I put the laptop ...
0
votes
1answer
36 views

How to separate a given type of file from others?

I have a folder containing about 6000 .pdf, .jpg, .doc and .djvu files out of which I want to separate all the .djvu files and move them to another new folder. I was wondering if there is a quicker ...
3
votes
1answer
107 views

Gracefully close appications on shutdown

How to automatically close an application on shutdown (graceful close, not kill)? I try to call wmctrl -c "App" in powerbtn.sh, but it does not work. The same wmctrl command works perfectly when ...
4
votes
2answers
219 views

Developing GUI application for CLI Ubuntu Server

I need to be able to render my own GUI to the screen, but I'm not really sure how to do this considering I'm in a CLI environment. I don't want to install Ubuntu-desktop or anything, I don't need an ...
38
votes
16answers
50k views

How do I open a text file in my terminal?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor) How do I do that ?
1
vote
0answers
22 views

Bash Script to set “system wide” proxy settings [duplicate]

I am wondering if there is a command (or series of commands) that would do the same thing as network-network proxy-apply system wide. I believe I can export a variable, but I think that that button ...
1
vote
0answers
27 views

Unable to locate package bitcoin [duplicate]

I have added the official ppa:bitcoin/bitcoin to my software sources and have done sudo apt-get update, but every time I try sudo apt-get install bitcoin this error pops up.: E: Unable to locate ...
5
votes
1answer
11k views

Unable to unzip file

trying to unzip a file so im trying the following command Sorry im really quite new to linux btw this is Ubuntu server latest release. user@serverubuntu:~/minecraft/server$ ls rtk.zip ...
2
votes
1answer
356 views

How to find and download a image file of specific resolution using wget?

How can I find and download an image file of specific resolution e.g.: 100x99 whose file name is not known using wget? Thanks in advance.
0
votes
1answer
3k views

Access Windows PC over network from command line [closed]

I am trying to access a Windows PC on my network from Ubuntu using the command line. My goal is to retrieve a few files from that Windows box. I don't have access to the Ubuntu GUI, all I can use is ...
0
votes
2answers
176 views

How do I install unsettings in ubuntu 12.10? [duplicate]

When I try to install through my terminal I get this error: enyel@Alexandria:~$ sudo apt-get unsettings E: Invalid operation unsettings enyel@Alexandria:~$ sudo apt-get install unsettings E: Could ...
12
votes
4answers
893 views
3
votes
1answer
449 views

Extracting images from video in 1 minute intervals

I would like to extract images from a video Exp01.avi, the video is 25 minutes long. I want the images to be extracted from the video after every 1 minute interval. Please someone tell me how to do ...
0
votes
1answer
229 views

How to make a program appear on the desktop like conky?

I would like to make a terminal program run and appear on the desktop in the same way that conky does ( or at least a similar). The effect I want to accomplish: Basically conky but with a command ...
4
votes
2answers
158 views

Creating a terminal command to extract tarballs

This is pure laziness, but I'm looking to create a custom terminal command to extract tarballs - ie "targz" then a filename would extract a tar.gz tarball, and "tarbz2"... Well, guess. I followed the ...
5
votes
2answers
96 views

Command-line way to view information about a PPA?

Lets imagine I have a added a repository called ppa:something/amazing, but I have forgotten what the PPA was all about and the name of the PPA is too vague or the PPA is a very large one. I want to ...
4
votes
1answer
2k views

How can I read and remove meta (exif) data from my photos using the command line?

Just looked this up. Figure I'd share it here for future reference.
1
vote
2answers
573 views

Ubuntu 12.10 Wireless Problem; only showing me Bluetooth option

My laptop is Dell Inspiron 15R. I have installed Ubuntu 12.10 a week ago, and realized that the option for wireless is not there. Not even in the network settings, so I went through the problems ...
1
vote
2answers
62 views

Is it possible to change the group of a file if I am not part of that group?

Is it possible to use chgrp or chown to change a file's group to one that I as the owner am not a part of? I own the file, but I am not part of the group that I want to change it to, so can it be done ...
1
vote
2answers
133 views

How to take the first n files from a directory with a letter in alphabetical order to another directory

I need to take the first 3 files from a directory starting with letter b in alphabetical order to another directory. I've come up with this command: find ...
0
votes
1answer
99 views

Downloading software from internet

I need to download a file from this site. I saved the file elements as Linux 64.bit into a temp folder in my desktop. How do I get these files from my temp desktop folder to its final destination so ...
2
votes
2answers
106 views

Search in a big file for specific string

I have a 6 GB text file. It has an access record for a whole month to my website. That file is my only hope to know how a someone got access to my website and hacked it. But, as the file is too big, ...
5
votes
2answers
99 views

Can I specify packages to be upgraded?

Can I choose which packages I want to upgrade with apt? Using apt-get upgrade upgrades all packages, not just some of them. Using apt-get install package doesn't upgrade some by me required packages ...
0
votes
1answer
230 views

shell script, read is not waiting with ssh

Hi all I am new to shell scripting and please help me in this situation. I have created a shell script named ./remote1 which looks like below. # ./remote1 file ssh username@x.x.x.x 'bash -s' ...
3
votes
1answer
4k views

How to merge folders and subfolders?

I have two folders (ORIGINAL A and ORIGINAL B), and both do have subfolders. How do I merge these two folders (and subfolders) to DESTINATION C? a) ORIGINAL A and ORIGINAL B do have the same ...
0
votes
0answers
184 views

Ubuntu for phones: fully functional shell?

Will “Ubuntu for phones” work with a fully functional, normal shell/terminal like in Ubuntu Desktop? I’m working with bash-scripts with the cron and lp commands, and I have problems with these ...
4
votes
2answers
5k views

Ubuntu copying file problem (cannot stat file)

I've faced a problem when copying a file with the commands, cp ~/Downloads/sample.pdf ~/Desktop/ But the terminal gives me a message, cp: cannot stat 'sample.pdf': No such file or directory.
3
votes
1answer
1k views

How to use Xfce4-display-settings terminal commands?

What I want is a terminal command that would activate internal display in case it is de-activated in Xfce. (Then, I could run this command by a script+shortkey and get a solution to this problem). The ...
0
votes
1answer
321 views

to move all file with certain common string except the extension of the file to another directory

Suppose there is directory with files and most of them have "ubuntu" string in common to the name of file . i used the command mv ubuntu1 ubuntu2 ubuntu3 ubuntu/ now i want to move all these ...
3
votes
2answers
782 views

How can I generate an M3U playlist from the terminal?

I'd like to generate a M3U playlist for a directory containing mp3 files on my server from the terminal. Since I'd like to ensure that every player will be able to stream those files I'd like to ...
1
vote
2answers
711 views

Will Ubuntu Phone and Tablet have Bash?

Will the Ubuntu for phone and tablet have the staple software suite installed, such as the Terminal etc? Will updates be possible using apt-get? In short will Ubuntu be Ubuntu?
0
votes
1answer
201 views

Ubuntu 12.04 lost data?

My Ubuntu 12.04 suddenly rebooted after working great for a month. I checked and saw that all my downloads,installed programs and bookmarks are gone. It looks like a fresh installation all together. ...
3
votes
1answer
1k views

How to automate execution of sequence of commands in ubuntu?

I am new to LINUX operating system. I am using ROS (Robotic Operating System) where I type few commands in separate terminal windows for doing the setup. ie Before I run my program, I have to ...
0
votes
1answer
115 views

Make will not compile efitools

Efitools will not compile due to this error: simple_file.c:206:2: error: 'EFI_BOOT_SERVICES' has no member named 'LocalHandleBuffer' The source is here : efitools repository.
1
vote
1answer
451 views

How do I change window title font size using command line in 12.10

Using 12.10, I can apply all but the last line in this answer: How do I change fonts and adjust their size? to change font sizes. gsettings set org.gnome.desktop.interface document-font-name 'Sans ...
5
votes
4answers
4k views

How can I get mv (or the * wildcard) to move hidden files?

I am migrating my home directory from an old system to a new one, and the tarball I made contains everything, including hidden files like .bashrc. However, when I move the contents of the unpacked ...
7
votes
1answer
316 views

Why is this `cp` command trying to remove files?

I am using Ubuntu 12.04.2 LTS on a Dell 50-50 laptop. Everything went fine until: [1635][lam@ubuntu:~/bin]$ ll total 48 -rwxr-xr-x 1 lam lam 232 Jan 27 20:37 demo.sh -rwxr-xr-x 1 lam lam 34 Aug 26 ...