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

learn more… | top users | synonyms (5)

0
votes
1answer
27 views

“No input files” running C program [on hold]

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
9 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
33 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 ...
0
votes
0answers
9 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
1answer
21 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 ...
0
votes
1answer
36 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 ...
0
votes
3answers
45 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 ...
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?
1
vote
2answers
110 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 ...
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 ...
0
votes
1answer
121 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 ...
1
vote
1answer
40 views

why does mailx — -f work no longer

I did the following in Ubuntu 12.04: echo "some body" | mailx -s "some subject" recipient@example.de -- -f sender@example.de it generated a message like this: To: recipient@example.de Subject: ...
-1
votes
0answers
29 views

What does the trap command do?

I don't understand what the following excerpt from A Practical Guide to Ubuntu Linux means. trap command: Catches a Signal A signal is a report to a process about a condition. Linux uses ...
0
votes
1answer
11 views

Reset terminal after each command in ZSH

I am using Konsole + ZSH in KDE with several tabs open. In some tabs I run different programs -- Python scripts with ipdb and other. At some point I cannot enter new line anymore -- pressing Enter ...
1
vote
1answer
20 views

How do I fill certain percentage by height of an image using ImageMagick commands in ubuntu?

I have an image with around 20% of its bottom filled with white color. But the image has some dots of other colors than white. I have 100s of such images which I would like to remove those dots from. ...
0
votes
0answers
19 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 ...
0
votes
1answer
15 views

Problem while creating the 95proxies file

When I run this command in Terminal: sudo gedit /etc/apt/apt.conf.d The following message is displayed: /etc/apt/apt.conf.d is directory please check that you typed the location correctly and try ...
0
votes
0answers
23 views

How do I properly install the Budgie desktop environment on Lubuntu 14.10

I managed to install the Budgie desktop environment on Lubuntu using the same commands as for Ubuntu. sudo add-apt-repository ppa:evolve-os sudo apt-get update sudo apt-get install budgie-desktop ...
0
votes
1answer
32 views

Upgrading packages through Terminal and knowing when a restart is then needed [duplicate]

When I run the application Software Updater and I install some updates which need a restart of my computer, it tells me that I need to restart. But when running this command in Terminal: sudo ...
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 ...
1
vote
2answers
23 views

How to find the first thousand bytes of an image file using ddtools

Hi I am looking to find the first thousand bytes of an image file using ddtools in terminal. Ubuntu Can anyone help please. Many thanks in advance.
-1
votes
1answer
43 views

How to make ubuntu as freshly installed [closed]

I installed ubuntu yesterday since i have made couple of changes e.g. creating new accounts,installing ubuntu gnome then again uninstalling it because it was not working,installing opengl and some ...
-1
votes
0answers
21 views

List all programs to handle specific file type [duplicate]

is there a way to list all installed programs in the terminal that are able handle a specific file type? Let's say i want to know which programs are installed to view images or pdf files? Thanks in ...
0
votes
2answers
32 views

Find out my user's group name without a terminal

I have managed to break my X server, and am trying to attempt the solution offered in this page. I only have one user on the system, but I have no idea what its group name is, which means I can't ...
0
votes
0answers
20 views

Keep opening an app with command [duplicate]

I have a problem. I am modifying ubuntu for other users (which are new to Linux) and I installed Docky app. It happens (5-30 mins), that the app closes by itself. I tried to put a command to startup ...
2
votes
2answers
73 views

How to use 'if' inside '-exec' attribute of 'find'?

I have a directory with many pairs of files. Each non-text file has a textual description partner. For example a directory can look like this: a.jpg a.jpg.text b.ogv b.ogv.text cd ef.JpG cd ...
1
vote
3answers
37 views

gksudo doesn't act like sudo for 'string' >> file [duplicate]

I'm trying to do a two-lines-script to temporary set a specific nameserver. Therefore I just output 'nameserver XXX.XXX.XXX.XXX' to the /etc/resolv.conf file, because it gets overwritten next time ...
0
votes
3answers
55 views

How do I open file or directory in terminal without typing the full directory path?

I am currently accessing the following directory user:/var/www/html$ Whenever I want to access a file or directory for example var/www/html/nauv/application/bootstrap.php or ...
0
votes
1answer
48 views

how to kill any process

My process show using this command : abc@ABC:~$ ps -e | grep -e apt -e adept | grep -v grep 2838 ? 00:00:11 aptd This 2838 Process kill using this command sudo kill -9 2838 But also its ...
0
votes
1answer
21 views

Problem setting up Environment for 'make' command execution

I am trying to set up devkitPro for ARM use, but I continuously get an error while executing the last two commands. The commands are make and make install. The tutorials I am following: ...
1
vote
1answer
29 views

put multiple matches on one line to a new line using grep

I need to put multiple matches on a line each on a new line example: grep "banana" This is the output Apple banana orange banana lemon melon banana grapes apple banana I want to become: ...
4
votes
2answers
429 views

Why isn't this script to delete part of my command history working on my computer?

The script can be found here: http://stackoverflow.com/questions/14750650/how-to-delete-history-of-last-10-commands-in-shell For convenience here it is: for x in `seq $1 $2` do history -d $1 done ...
2
votes
3answers
78 views

How to fully remove VLC Player

I installed VLC player, but now I want to be fully rid of it, so I typed in the following command in Terminal: sudo apt-get purge vlc And it told me that it had purged it, but then in Terminal when ...
0
votes
1answer
42 views

Unlocking applications from launcher from the command line

In order to automatically configure fresh installations, I need a way to unlock the default applications from the launcher bar. Don't know where this information is stored, may be editing/substituting ...
0
votes
1answer
35 views

daily-19909.cdiff not found on remote server

I have got ClamAV installed. And recently when I have been executing the following command in Terminal: sudo freshclam I have been getting errors such as this one which I got today: ClamAV update ...
0
votes
0answers
5 views

Help installing DevkitARM and ctrulib.

I am trying to install the DevkitARM and crtulib to help in the homebrew scene, but I can not get this to install for the life of me. Any help, especially a small tutorial, would be immensely ...
-4
votes
3answers
587 views

find all headers file begin with vowels in /usr/include

I need to find all headers from /usr/include that begin with vowels (a,e,i,o,u) Example: acpi.h aclinux.h ah.h ... I don't know how to do it , I tried something with grep but I didn't make it ...
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. ...
1
vote
1answer
36 views

What am I doing wrong with Sed

My input: sed -i 's/if ($.browser.msie)/if ($.browser={ msie: ( navigator.appName == 'Microsoft Internet Explorer') ? true : false })/g' file.js I have tried putting the search and the replace ...
3
votes
4answers
529 views

Is it possible to create commands, put it in one file and run without “./”? [duplicate]

If I create a script in a file like this: #!/bin/bash echo "test" As far I know (as a newbie) is to put it in some folder then make it executable with chmod +x myscript and then execute it with ...
0
votes
1answer
13 views

Is there an environment variable in csh to modify PS2?

Is there an environment variable in CSH to change the PS2 like in bash and sh? For example: $PS2 = "hi" I tried it but it doesn't work in csh.
0
votes
0answers
28 views

Why is cat command returning the prompt only?

I'm trying to use the cat command to read a simple txt file in the terminal but after entering in command, the prompt just returns slightly modified with the current working directory. could it ...
0
votes
1answer
41 views

Is it possible to use variable in sed command in unix bash script [duplicate]

I trying to solve following problem. With great helps of others here, I can write and understand simple do loop in bash scripting. Now I try to do this: In "mein_directory" directory I need ...
14
votes
3answers
860 views

How to create 100 subdirectories using a Bash script?

I am trying to create 100 different subdirectories in certain directories using a Bash script. I start with a basic for loop (that is, for f in $FILES;do mkdir f done), but it doesn't work. To be ...
1
vote
1answer
34 views

How to change gedit preferences from terminal?

I'm preparing a bash file to automatically configure a fresh installation, and would like that gedit goes to the desired shape without manually configuring the preferences. How can it be commanded ...
0
votes
0answers
63 views

open windows in different monitors [closed]

Im trying to open a window-A in a monitor connected via VGA and another window-B in a monitor connected via HDMI; all these done in terminal. I have tried many different ways and have not yet found a ...
2
votes
1answer
118 views

Alternatives for [variable = string substitution] in bash

I am learning bash and trying to understand the different ways of making a substitution and assigning it to a variable. Specifically, I'm changing Unix slashes ('/') to Windows ('\'). References: ...
1
vote
2answers
61 views

Error trying to run apt-get install ttf-mscorefonts-installer

I am attempting to install the MS Core fonts on Ubuntu 14.04 LTS, and am running into the following error: vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install ttf-mscorefonts-installer Reading ...
0
votes
1answer
37 views

What does 'history | grep cp -r ' do?

I typed this commands by mistake in my shell and then my shell was filled with all the text . I don't know what it does .Please someone explain it to me .
0
votes
0answers
35 views

ubuntu arm on beaglebone black check for usb devices attached to usb HUB

I have a beaglebone black running ubuntu arm, attached to this I have a usb hub. Now if I attach a new device to this usb hub then it will automatically be recognised as /dev/ttyACM0 however when I ...