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

learn more… | top users | synonyms (5)

0
votes
3answers
49 views

Copy sub-directory from 1 directory to another

I need to make a copy of the content of one directory to another. I need to copy only 1 sub-folder. For example; if I have a folder called "from" and want to copy one of it's sub-folders (with all ...
1
vote
1answer
38 views

Byobu changing tabs

When I'm sharing the same byobu session with multiple users, sometimes when I change the tab, the other user is automatically changed to my new tab, and sometimes he has to do it manually. How can I ...
1
vote
1answer
50 views

Can't start Byobu?

I can type this command byobu on the terminal and Byobu will start but when I click on the Gui icon it starts and closes fast. What I did before that is enable autolaunch and then disable it I thought ...
0
votes
0answers
18 views

Command hangs when directed at a shared network drive [duplicate]

In an effort to become more familiar with ubuntu/linux, I have recently installed a VM with Ubuntu 14.04 on it. I mounted a shared network drive to my home directory, which is named ostenso. ...
0
votes
1answer
566 views

How to change internal IP address from DHCP to static?

I have a pc running Ubuntu server 14.04.1. The internet was set up using DHCP I believe. I want to keep the same IP and subnet I have now but just change it to static for the internal IP.
0
votes
0answers
20 views

How to resolve these errors when launching Splashtop from the command line?

I'm am trying to execute splashtop on my VPS to give me a remote graphical interface. The environment is Ubuntu 14.04 LTS. I attempt to run it using python /opt/splashtop-streamer/SRStreamer.pyc and ...
3
votes
3answers
8k views

External backup - “cp: cannot create regular file” error

I have always backed up my home directory to an external hard drive using the cp -r command. Until recently, it worked fine, but now I regularly get the error message cp: cannot create regular file ...
4
votes
4answers
1k views

How to start/stop downloads in Azureus (Vuze) via terminal?

I need to stop/start download through shell script in Azureus(Vuze). I know there is CLI and I can invoke it as java -jar Azureus2-XXX.jar --ui=console The ? will show a list of commands I can use. ...
0
votes
2answers
33 views

dpkg lock cannot be resolved [duplicate]

I get the following error: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another ...
7
votes
2answers
559 views

How to do: underline, bold, italic, strikethrough, color, background, and size in Gnome Terminal?

How to do: underline, bold, italic, strikethrough, and color in Gnome Terminal? Bold Italic u̲n̲d̲e̲r̲l̲i̲n̲e̲ s̶t̶r̶i̶k̶e̶ ̶i̶t̶ ̶l̶i̶k̶̶e̶ ̶i̶t̶s̶ ̶h̶o̶t Color background font < (its mono ...
1
vote
0answers
16 views

problem executing c program on codeblocks [duplicate]

i installed code blocks on ubuntu but when i run a program the problem shows that is: [sh: 1: /media/mysticboy/Parsonal/pgrms on ubuntu/test/bin/Debug/test: Permission denied Process returned 126 ...
1
vote
1answer
13k views

Reinstalling Ubuntu via Terminal

I've currently encountered some issues with ubuntu causing me to be stuck in tty mode. I already tried fixing the issue but since I'm not sure of what really happened for this issue to occur I now ...
0
votes
1answer
19 views

Match Pattern and write following value as variable

I'm trying to match a pattern and then pull the following information to create a file using that variable. Example (my data may look like either of the 2 examples) "headers": { ...
11
votes
7answers
1k views

Convert thousands of .pngs to animated .gif, `convert` uses too much memory

Many of the questions asking how to create an animated gif from a set of png images suggest to use a variant of ImageMagick's convert command: convert -delay 2 -loop 0 *.png animated.gif However, I ...
5
votes
4answers
3k views

How to start terminal with present working directory as “Home” instead of default “Root”?

When I start my terminal the current working directory is always "/". I want it to start from "/home/<username>" i.e. my home. Any solution for this?
0
votes
0answers
39 views

Cannot mkdir changed home directiory

So I'm on a chromebook and I'm running 13.10. The only reason I got that version is because it took less time to download and install. It works fine, and hopefully it's not too different from Ubuntu. ...
0
votes
2answers
169 views

How do I update Intel e1000 driver? Server reverts to old driver on reboot

I have a kvm server and I'm trying to update my Intel e1000 drivers. I can install the new drivers using the following code make clean make make install modprobe -rv e1000 modprobe e1000 ...
113
votes
5answers
515k views

How to delete a non-empty directory in Terminal?

How do I delete the following directory? I typed: rmdir lampp This error comes up: rmdir: failed to remove `lampp': Directory not empty Is there a command to delete all the files in the ...
1
vote
1answer
22 views

My script only opens new terminals when the previous command's terminal is closed

Sorry if my title is a little hard to understand, I tried to condense the issue as much as possible. I'm trying to run a bash script which opens a new terminal for each major command, that way I can ...
0
votes
1answer
30 views

gsettings not working from within bash function

Pretty New to bash and only 6 months into ubuntu so please bare with me. Im creating a post installation script https://github.com/jjdemitriUk/relutionDev everything is going well so far its written ...
3
votes
3answers
185 views

Sudo command in bash script halts the script

I have an early 2009 iMac with a sensor problem. The ODD and CPU fans run at full speed. To get them down to minimum speed in Ubuntu I need to set the speeds in the Terminal, using this method. Rather ...
25
votes
9answers
69k views

How to move multiple files at once to a specific destination directory?

I got a bunch of files in some directory (along with many other files) that I want to move. Luckily, all the files I want to move contain a certain identifier in their names, so I can ls | grep ...
148
votes
14answers
168k views

How do I fix my locale issue?

I am getting this message every time I do something like starting or stopping a service. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: ...
34
votes
10answers
50k views

System Monitoring Tools For Ubuntu

I am looking for System Monitoring tools which are GUI and Cli or Web Based which include Basic Functions such as CPU Usage Ram Usage Swap Usage Disk Usage ( Space / I/O ) Heat Monitoring I know ...
43
votes
4answers
31k views

Is there a hotkey to switch between tabs in the default terminal app?

Is there a hotkey to switch between tabs in Ubuntu's native terminal app? I'm using the netbook version of ubuntu.
2
votes
1answer
5k views

Is there a way to force format write protected pendrive

My USB is a Sandisk Cruzer 8 GB drive with USB 2.0. It says it's write protected when I try to format it. Is there a way to force format it ? I try'd some of this ways : varun@varun-pc ~ $ sudo ...
2
votes
1answer
3k views

saving xls as csv with libreoffice calc

I am using LibreOffice 3.5.7.2 Build ID: 350m1(Build:2) and would like to run LibreOffice calc from the terminal to open an .xls document and output to .csv. I can do this via the GUI by just opening ...
24
votes
2answers
80k views

How do I install Chromium from the command line?

I have already tried using the Ubuntu Software Center, but it won't install the Chromium browser. How can I install it using the terminal?
0
votes
0answers
22 views

I Ran startx From Terminal as SU Now I Can't Log In

I ran startx while in SU mode from terminal while already logged into Ubuntu desktop. This was probably really stupid, I know. The screen immediately went completely black. I rebooted, now every time ...
0
votes
1answer
22 views

Where does my installed file reside

When I do sudo apt-get install openvpn ... it does not install the file rather it downloads a file and stores some where . Now how can I find where the file has reside.
8
votes
3answers
1k views

How does `>` and `>>` work?

I tried to rev a file and then pipe it to cat > same_file but it was turning into a blank file. While I tried rev file.txt | cat > file2.txt && mv file.txt file2.txt; it worked. ...
0
votes
0answers
13 views

“sudo do-release-upgrade” or “do-release-upgrade”? [duplicate]

I see to upgrade Ubuntu to a new release version that I have to do do-release-upgrade which checks for the new version and allows me to upgrade. But would it not be better to do sudo ...
0
votes
1answer
31 views

“No input files” running C program [closed]

When i tried to run hello program of C on the terminal the following error comes: $ gcc hello.c -o hello gcc: error: hello.c: No such file or directory gcc: fatal error: no input files compilation ...
0
votes
0answers
13 views

I have trouble import the boot image of MAAS

After following the official instructions, I come to the configuration web page. Instrucitons: http://maas.ubuntu.com/docs1.7/bootsources.html After pressing the import image button, I have a very ...
0
votes
1answer
35 views

Unable to update system from terminal on Ubuntu 14.04

I am using Ubuntu 14.04. Recently my institute changed network proxy settings. After that, I am unable to update anything from my terminal. Also, new installations from terminal are not possible. I ...
2
votes
1answer
177 views

apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]

When I do upgrade it gets stuck here: user@plato:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done ...
0
votes
0answers
10 views

Ubuntu server VM install has limited bash functionality

I installed Ubuntu Server 14.04 in a VM and I selected the VM option during installation since my host has limited memory. I accepted the fact that most features will be disabled in such a system for ...
0
votes
0answers
385 views

Invalid entry length (0). DMI table is broken! Stop. displayed when enquiring about system-product-name in the terminal.

When I type this command: sudo dmidecode -s system-product-name in my terminal on a dual boot system with Mac 0SX 10.9.4 and Ubuntu 14.04. I get the following output: MacBookPro11,1 Invalid ...
0
votes
1answer
24 views

Command line python is different from Python IDLE

I have installed sklearn on Ubuntu 14.04. However, when I execute a script via the command line which imports sklearn, I get an import error. Running the same script with Python IDLE yields no error ...
19
votes
2answers
18k views

How to resize an image through the terminal?

I have Ubuntu 10.04. I have converted image through terminal using the following command: convert myfigure.png myfigure.jpg. But I want to resize the height and width of the converted image. Is ...
1
vote
2answers
116 views

How can I delete all folders of a specific name without deleting Contents in it?

How do I delete all Folders with a specific name (e.g. 128Kbps_Songs) without deleting its files For example if I have directory "MP3_SONGS" with subdirectories "A", "B", "C" and each subdirectory ...
20
votes
1answer
16k views

How can I find out what RAM a computer system has?

I'm looking for a way to find out what kind of RAM a system has (clocking speed, DDR-X etc.). Is there a specific command for that? I'm only aware of free or lspci which don't offer those things.
2
votes
3answers
647 views

how to download playlist from youtube-dl?

I'm trying to download some videos in mp3 format. it's a play list. How do I download the whole play list wit one command?
0
votes
2answers
592 views

How to fix dangling symlink error

I am trying to install transmission on my ubuntu 14.04 server and I am unsure whether to skip this part or not. I am trying to give permissions to a folder with sudo chmod -R 770 ...
0
votes
1answer
37 views

Why does terminal keep closing right after I open it?

I tried to edit the profile so that when I start my gnome-terminal it always starts with archey... So after adding archey to something, I closed my terminal and tried to re-open it... However it ...
37
votes
2answers
19k views

What are login and non-login shells?

It is said that settings for non login shell to go into .bashrc file and login shell settings to go into .profile file. What is really meant by login and non-login shells? Please explain without ...
0
votes
3answers
48 views

Execute command in terminal an don't wait its return

I need to run Firefox browser from terminal. Browser works fine, but terminal still waits for Firefox to return and if I do CTRL+C, it terminates Firefox. How to run command to make Firefox work ...
0
votes
1answer
36 views

How to perform apt-get operation on all installed packages?

I need to perform a dpkg-repack operation on everything to move to a new install on another hard disk, but the problem with this installation is that both I can't access any gui from a couple ...
6
votes
3answers
15k views

How to eject a CD/DVD from the command line

I've just right clicked on the DVD icon in the Unity Launcher in order to eject it, but instead of hitting the 'Eject' button, I missed and hit the 'Unlock from Launchpad' option instead. How do I go ...
2
votes
1answer
20 views

Changed permissions of su

I accidentally changed permissions of /usr/bin/su by chmod 744 su, and am not able to become root any more. How can I change the permissions back?