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

learn more… | top users | synonyms (5)

0
votes
1answer
23 views

Ubuntu with only CLI image… No more GUI

I'm looking for ubuntu image which has only cli. I want install it on my windows pc through VM Box. I don't like switching from GUI to CLI or changing grub files. Where I can get pure cli ubuntu os ...
59
votes
4answers
170k views

How can I copy the contents of a folder to another folder in a different directory using terminal?

I am trying to copy the contents of a folder to another folder in a different directory using terminal. Would somebody be able to provide me an example of the command line syntax required to achieve ...
2
votes
1answer
55 views

How to close only one window of an application?

I know that if I get the sid through : ps -ax | grep firefox and use : kill -9 "sid" I will close all the windows of the program. How can I close only one window of an application running through ...
1
vote
1answer
13 views

How do I turn off autolist in tcsh terminal

Since I upgraded to Trusty Tahr, whenever I do tab completion in the (tcsh) terminal it will complete as far as it can and then show me all of the options available. I hate this behavior and want it ...
7
votes
3answers
2k views

How to use guake at right side monitor in dual display environment

I want to use Guake at right monitor. So I added this ppa by sudo add-apt-repository ppa:cberner/guake, and sudo apt-get update. ...
13
votes
4answers
821 views

Is there any default function/utility to prompt the user for yes/no in a Bash script?

Sometimes I need to ask the user for yes/no to confirm something. Usually I use something like this: # Yes/no dialog. The first argument is the message that the user will see. # If the user enters ...
0
votes
2answers
30 views

grep to get compile error

I have created a simple c program and have left off a ';' on purpose to get an error. I want using the grep command to know whether the compilation was successful or not. I use: gcc test.c | grep ...
0
votes
1answer
14 views

Ubuntu touch terminal

From googling around I have noticed that Ubuntu touch does have a terminal program. I have the amd64 image of Ubuntu desktop next(15.04) installed in a multiboot environment.However I just can't find ...
1
vote
1answer
28 views

The colors when doing “ls” at my ubuntu server diappeared just like that

OK I know it's a super stupid question but driving me crazy! I just had new 14.10 VPS setup and while setting up some basic initial stuff in the terminal out of sudden "ls" command stopped showing any ...
0
votes
2answers
59 views

ffmpeg & ffprobe & libfdk-aac on Ubuntu 14.10 server

How to install properly ffmpeg? (not a duplicate as most of the similar answers don't work properly) Normally i compile ffmpeg manually with the following guide ...
4
votes
2answers
156 views

Shell gives no prompt if auto completion is enabled (blinking cursor instead)

I tryed to enable shell autocompletion uncommenting the following lines in my .bashrc: # enable programmable completion features (you don't need to enable # this, if it's already enabled in ...
0
votes
2answers
7k views

accessing MySQL using terminal in Ubuntu 13.04

accessing phpmyadmin db from terminal now in ubuntu 13.04 i firstly installed mysql server with sudo apt-get install mysql-server mysql server version 5.5 now in terminal i can check if it is working ...
0
votes
0answers
9 views

arm-none-eabi-gcc not found error

I've installed (ubuntu 10.04) arm-none-eabi-gcc (with libc-avr, avr-gcc and so on), using command apt-get install, but when I try to compile something I get the following error: --- Making ...
10
votes
2answers
582 views

What does $PATH mean?

I am trying to install something and among the steps there was this one: "Place it on your $PATH" What does this mean? What is that? I have searched both this site and on Google but everyone just ...
0
votes
1answer
13 views

How to run XAMPP Shell in Linux

I know this is probably a dumb question for most of you - but I just recently installed ubuntu, installed XAMPP, run it(apache + mysql working) - now I'd like to use shell to run some of the php ...
21
votes
5answers
49k views

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. ...
2
votes
1answer
73 views

Behaviour of symlinks

I successfully and not successfully created a symlink: I have two directories ~/foo and ~/bar Now I have a file called baz.txt in this path ~/foo. My aim was to create a symlink in ~/bar so I ...
0
votes
1answer
57 views

Compressing a folder (tar) without its containing directory in the foldername

I am trying to compress a folder with tar command. When i trying to compress it , it works fine the problem is with the file name. source path : /data/file/ destination path : ...
0
votes
0answers
11 views

Input lag in terminal specific to the last character

The problem: Typing appears smooth and lag free when typing quickly, but taking a closer look, it seems as though a character is only displayed once either (1) the next character is typed or (2) a ...
0
votes
0answers
21 views

Bash question with system processes? Stopping and renicing “Java” processes

I play minecraft on linux, and I would like to make a Bash script that does two things. First, I would like it to close the minecraft launcher's process. Secondly, I would like it to renice the ...
6
votes
2answers
5k 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
0answers
20 views

What is the easiest way to connect to a linux terminal through (Ham) Radio?

I will be traveling in the Atacama Desert, at times away from the main internet, and I would like if possible to execute some simple commands on my linux server while I am there. Although Ham Radio ...
39
votes
7answers
100k views

How do you reset a USB device from the command line?

Is it possible to reset the connection of a USB device, without physically disconnecting/connecting from the PC? Specifically, my device is a digital camera. I'm using gphoto2, but lately I get ...
0
votes
0answers
41 views

Problem with words in Terminal

I have problem with Words in terminal like this pix any one can help me please
0
votes
1answer
20 views

How to auto load source file on bash startup?

I recently installed Ruby Version Manager (RVM) to make use of the command called compass. Initially it was working find on installation, but now I get a missing error: The program 'compass' can be ...
3
votes
4answers
343 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 ...
-3
votes
2answers
193 views

How to login in terminal as root anytime when I open terminal?

I don't want to type sudo and my password everytime.I think it is really annoying.Is there any command or option which will consider you root user when you open terminal,everytime When you open ...
-1
votes
0answers
18 views

how to list all subfolders from multiple drives [duplicate]

Can I list all subfolders from multiple external drives in one single txt/doc output? Can the list be ordered alphabetically?
3
votes
0answers
28 views

How can I determine which fonts are installed from the command line, and what is the easiest way to install more?

There are many questions and answers regarding fonts on Ubuntu, but not so many dealing with Ubuntu for Embedded Linux, such as Beaglebone Black. I have not been able to locate any .ttf files in ...
0
votes
1answer
26 views

command to print out list of folders from multiple drives

Is there a CLI command to print out in alphabetical order (but in one single txt or spreadsheet) the list of folders contained in different hard drives? For example, lets say I have this ...
3
votes
2answers
340 views

Script doesn't work when it is run using '#!/bin/sh'

I have a script that use shebang : #!/bin/sh, but when I run it in my Ubuntu 14.04 terminal, it doesn't work and it says that some lines has unexpected operator. My friend in another computer could ...
0
votes
0answers
10 views

Error keeping me from installing multisystem

I need some help on an important thing. You see, I have a Windows XP laptop that lost some system32 files and the only other laptop here is a Kubuntu notebook. I need to install Multisystem, and i've ...
0
votes
0answers
7 views

How to deploy nodes quickly?

I want to know how I can deploy a lot of nodes via PXE-Boot very quickly and then run a command on each node, for example to start the lokirender grunt for rendering. I would really like to use ...
66
votes
14answers
84k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
2
votes
1answer
25 views

'Closing' (hiding) terminal without clearing it

So I'm using always on top and on active workspace with transparent background (you see where it's going), and I'd like to be able to just close terminal, and next time I open it to resume work. e.G. ...
23
votes
9answers
132k views

How to remove all files from a directory?

The closest I've gotten is # rm /path/to/directory/*.* but that doesn't work for files that don't have an extension...
3
votes
2answers
68 views

Redirecting output to a variable?

I'm interesting in directing the output from two commands to a variable. I don't want the output to be displayed on the screen, but instead assigned to a variable within my script so that I can use ...
0
votes
0answers
13 views

How open c++ qt prog in new process [on hold]

Got simple console c++ app, it takes 4 parameters. How can I open 2/4/8 times with different data, each for new terminal? Need option to change nice value, so system() can't be. Or how to output PID ...
67
votes
5answers
120k views

What is the correct way to completely remove an application?

I've searched the net for such information and found different command lines, like these ones: sudo apt-get remove application sudo apt-get remove application* sudo apt-get remove --purge ...
0
votes
2answers
45 views

Command line file sorting, copying

Copied from my terminal . . . dan@Silver:/media/dan/RAID/MUSIC$ grep -r '.mp3' ./ > cp *.mp3 /home/dan/Music/ grep: input file ‘./cp’ is also the output I have a music collection on an NTFS ...
0
votes
0answers
16 views

Run cron job to execute a script when a particular file is updated

I would like to automate a process which requires running a script to generate some files. To do this I thought that adding a cron job to run this script would be great. But I want cron to run the ...
0
votes
1answer
26 views

Wrong password in Terminal

I'm new in Ubuntu's world and I have a quick question (hope it doesn't repeat): I want to download some restricted files for watching movies online but there's a problem, it wants to introduce a ...
0
votes
0answers
11 views

Terminal output wont clear automatically. Ubuntu server 14.04.1

I need some help to get this sorted, it's really annoying and i cant find anything related on the web. As you can see on the pictures, stuff wont close\clear automatically like it should. I need to do ...
4
votes
2answers
58 views

Disable Control+Alt+End

Background In xfce4, pressing Ctrl+Alt+End hotkey cycles to the next workspace. The settings for this can be displayed from the command line using: xfconf-query -c xfce4-keyboard-shortcuts -lv | ...
0
votes
0answers
16 views

libkmod: Error ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe./blacklist-nouveau.conf line 5 ignoring bad line starting with 'alia'

libkmod: Error ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe./blacklist-nouveau.conf line 5 ignoring bad line starting with 'alia' Phone picture of error ...
5
votes
2answers
316 views

Is there a utility to extract/compress files using any type of archiving algorithm?

Usually I use tar for *.tar archives, zip/unzip for *.zip, 7z for *.7z , etc... Is there an über utility that combine all algorithms? Here is pseudo usage of this utility: Extracting: $ unpack ...
3
votes
4answers
233 views

How to select and print IP address from a set of strings?

I have a sentence whic contains an IP address. For example, This sentence contains an ip number 1.2.3.4 and port number 50, i want to print the IP address only. From the above sentence, I want to ...
0
votes
0answers
16 views

More productive way of navigating files and folders in huge source code?

How do you navigate files and folders in productive way? I need to jump back and forth all over the huge source code. I want it to be little more productive than now. Here is the alias I am using. # ...
0
votes
1answer
47 views

VLC instalation problem

I am completely new to Ubuntu, wanted to install VLC it wasn't working, updated system, than upgraded it, but still it isn't working. I used both the Ubuntu Software center and the Terminal for that. ...
0
votes
1answer
22 views

Files deleted as root, But disk space is not available

I entered the following command sudo nautilus /home/ in terminal and copied a 2GB movie to the /home/ directory. So, my home folder contains two folder : User directory (/home/User) Movie directory ...