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

learn more… | top users | synonyms (5)

1
vote
2answers
42 views

How to change visudo editor from nano to vim?

When I use visudo, it always opens it with nano editor. How to change the editor to vim?
2
votes
2answers
350 views

How do I use cut to make tab the delimiter?

I am working with the egrep command and I need to pair with the cut (and ONLY cut) command to change a ":" into a tab. For example change: Blahblahblah:2000 to: Blahblahblah 2000 I currently ...
2
votes
2answers
36 views

Unable to type in a terminal

When I open a terminal no cursor appears, and no text, I just get a blank black screen. I am able to run commands by pressing Ctrl-Alt-F2. I have minimal understanding of typing code etc. (Using ...
0
votes
2answers
2k views

Failed to execute child process? Anyone know a fix for this?

I changed something that I did not mean to change and now everytime I try to open Firefox it says: could not launch application, failed to execute child process "firefox" (No such file or ...
7
votes
2answers
14k views

How to read complete line in 'for' loop with spaces

I am trying to run a for loop for file and I want to display whole line. But instead its displaying last word only. I want the complete line. for j in `cat ./file_wget_med` do echo $j done result ...
0
votes
1answer
40 views

What's the best way to copy `previously run command` to another terminal?

There are two terminal window - terminal A and terminal B. I typed a long long command to do something on A. then I want to execute the same command on B. But I would NOT like to type it again nor ...
0
votes
0answers
27 views

Gtk-Message: Failed to load module “overlay-scrollbar”

I am using Xubuntu 14.04, The following Message shown many times (such as executing mousepad , zenity etc). $ mousepad Gtk-Message: Failed to load module "overlay-scrollbar" pandya@pandya-desktop:~$ ...
8
votes
3answers
582 views

How do I resize partitions using command line without using a GUI on a server?

I only access the server via terminal and I can't use graphical tools such as gparted! I need it because I want to create a new partition from a part of root about 768mb to create a swap partition. # ...
1
vote
1answer
30 views

is software update application in ubuntu like sudo apt-get update?

Does software update application in ubuntu 14.04 like sudo apt-get update command?
-1
votes
0answers
12 views

Where are properties of mate-panel in Linux Mint Mate 17 Qiana? [migrated]

There is mate-panel in Linux Mint Mate 17 Qiana based on Ubuntu 14.04. Panel properties appears when right click mouse on it. Is it possible to run it via Terminal command? For example, we can run ...
1
vote
1answer
14 views

How to tweak “dpkg -l” output

I need the fields returned by dpkg -l to be tab separated but without the headers and the "ii" column. The default output: $ dpkg -l grep Desired=Unknown/Install/Remove/Purge/Hold | ...
0
votes
0answers
14 views

Download through terminal stopped halfway in Ubuntu 14.04 [on hold]

I was downloading a game when it stopped/paused in halfway. I tried to cancel and try again, but it got stuck at the same point. What should I do. I am using Ubuntu 14.04.
12
votes
3answers
680 views

What is the 'command' command and what is it used for?

I was trying to learn new terminal commands. Then I tried to write command to test what happens. Strangely, looks like it's a valid command, but what does it do? It didn't return anything.
1
vote
1answer
65 views

How do I run only first command in backgound?

I want to send only first command to run in background. How can I do that? For example for this commands sudo apt-get update & && apt-get upgrade My first command must run before ...
0
votes
1answer
37 views

shutdown 5:30pm every day

for a five thirty pm shutdown, should I change this: 30 02 * * * /sbin/shutdown -h now to: 30 17 * * * /sbin/shutdown -h now see also: Crontab Shut down command didn't work
2
votes
1answer
258 views

With gpg --verify, how do I distinguish valid signatures and valid signatures from trusted keys programmatically?

I want to write a script that runs gpg --verify to check a signature. The gpg command returns 1 for invalid signatures and 0 for valid ones. But it gives different output for keys that are in my ...
1
vote
2answers
92 views

How to grep for groups of n digits, but no more than n? [on hold]

I'm learning Linux, and I have a challenge that I seem to fail to solve on my own. Here it is: grep a line from a file which contains 4 numbers in a row but not more than 4. I'm not sure how to ...
0
votes
1answer
46 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
0answers
40 views

Another copy of splashtop streamer is running

When I start up this application called splashtop streamer by using python /opt/Splashtop-streamer/SRStreamer.pyc at the prompt everything works fine. However, when I add sh -c sleep 10; to the ...
0
votes
3answers
20 views

Software update issue using terminal in Ubuntu 14.04

I have been getting this error ever since I messed up my repository list and updated to xubuntu DE on ubuntu 14.04 LTS. I also tried updating the sources.list file. I also tried removing the package ...
-2
votes
2answers
56 views

How do you create custom terminal commands

For instance if I wanted to type $Ctrl+Alt+Delete and it would return the same as $reboot this way when editing custom taskbar launchers we can execute key commands via terminal. Would I write a ...
2
votes
1answer
43 views

How do I save a line in terminal without runninig it?

Is there an option to abandon the current command and later go back with the up arrow? Sometimes when I want to open multiple files at once I want to check "dir" to see if I got the right paths. How ...
0
votes
0answers
16 views

Ubuntu Gnome terminal won't start

Seems like my gnome-terminal won't start every time I press Ctrl Alt T nothing happens so as when I manually try to open it from the apps list. I tried using Alt F2 and typing xterm and running the ...
9
votes
5answers
19k views

Why I get hostname: Name or service not known error?

I'm getting this error when ever I install any packages via apt-get: hostname: Name or service not known dpkg: error processing ssmtp (--configure): subprocess installed post-installation script ...
0
votes
0answers
13 views

Weechat error: unkown command “script” (type /help for help)

While trying to set an autoloading python script in ubuntu, I received the error listed in the title. A google search returned no similar issues and when I type /help scriptthe output returns: No ...
0
votes
1answer
22 views

Auto copy on double click in Terminator

I used to be a heavy user of iTerm2 and one of it's most useful features I found was to auto-copy the text to clipboard when I double click and select something. I recently transitioned to Ubuntu and ...
3
votes
1answer
22 views

Why doesn't yes fill up the buffer?

Say I do something like yes | apt-get install foo. I know that yes will non-stop print a bunch of y\n's to stdout. But apt-get can only process a few of those. Why doesn't yes fill up the buffer? Does ...
0
votes
2answers
17 views

Run PHP script from command line?

How can I Simply Run a php script in the command line? Also is it possible to run it like it would be if the Url was typed in?
5
votes
0answers
111 views

Access to /dev/ttyUSB0 and sudo

This is my first question here. I am running Ubuntu 12.04 and have an application accessing the USB port of computer. My Ubuntu username is gadu. Until today, i've always used the following command: ...
-2
votes
0answers
22 views

VESA: Intel® Sandybridge/Ivybridge removal

I accidentally installed very outdated drivers, I have been tricked into installing this old graphics driver and I need the original default drivers the computer came with! I really need help with ...
0
votes
0answers
25 views

How to set the path to xstream in Ubuntu 14.04

I am using Ubuntu 14.04, and installed my version of jdk using sudo apt-get install openjdk-7-jdk Now I installed xstream 1.4.7, but whenever I compile any java files using the package, I get an ...
0
votes
1answer
22 views

Can we implement some new functions for terminal ie. typing the word Tab will result in key stroke Tab

Ok Im wondering why in terminal we cannot input these commands and get the same output as the keystroke? Is it possible to some how add them to list of acceptable commands in my terminal. Tab = Tab ...
18
votes
8answers
43k views

How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash?

Is there a command to remove all files and subdirectories in a directory WITHOUT deleting the directory? For example if I have directory "dontDeleteMe" with subdirectories "1", "2", "3" and each ...
0
votes
1answer
31 views

Month names are written in Hebrew and not in English in terminal

When I ls -l, the output is printed on screen by in a line similar to drwxrwxr-x 3 yotam yotam 4096 יונ 29 10:27 mnt the יונ part is Hebrew for JUN. I want it to be in English, that is JUN I ...
2
votes
2answers
2k views

Any advantage or disadvantage to using the command line vs the graphical update process using update manager?

11.10 to 12.04 Upgrade: My natural inclination is to go for the command line update method using: do-release-upgrade Any advantage or disadvantage to using the command line vs the graphical update ...
1
vote
2answers
50 views

iTunesToRhythm code not working?

Hello I am trying to install run this iTunesToRhythm. The supplied command is: iTunesToRhythm.py -w -a iTunes\ Music\ Library.xml ~/.local/share/rhythmbox/rhythmdb.xml The error I am getting after ...
-2
votes
2answers
30 views

Which command is to take for to find out about program, which else programs are initialized by this one program? [duplicate]

Yes - this concerns the question which commands in terminal are possible, for to find out which programs are initialized (visible and non-visible) - by program1. (for example - when I only want to ...
5
votes
1answer
820 views

I accidentally removed my Trash and can longer put items into it, how can I get it back?

I did a stupid thing. I was having issues with certain files in my trash that my system was not allowing my to delete, meaning I could no longer empty my trash. These were not super important files, ...
0
votes
1answer
23 views

inotifywait don't have access to folder

I got a problem with my folder rights/groups settings. One folder does have 755 and a group 'xyz'. I am in that group 'xyz' and I can actually see it's contents when I list it on terminal. By ...
5
votes
8answers
5k views

How do I combine all lines in a text file into a single line?

I want to get all lines in a text into one line. I'm a beginner at coding trying to learn by doing. I've spent four hours trying to solve this problem. I know there's a simple solution to this ...
3
votes
0answers
14 views

How can I mute an individual application from command line? [duplicate]

I can see a list of applications currently playing sound: And I can mute them by clicking the On/Off slider. How can I do thi from command line? I want to be able to mute google-chrome, so that I ...
4
votes
2answers
55 views

Difference between echo -e “<string>” and echo $“<string>”

What is the defference between using echo -e "Hello\nWorld" and echo $"Hello\nWorld" don't they both output: Hello World
1
vote
2answers
45 views

gibberish command not found on bash terminal startup

I have run across an issue that I just cannot seem to figure out. When I start my terminal in ubuntu (14.04) I get the message sdfsdfsdi: command not found As you can see it just looks like ...
0
votes
3answers
36 views

How do you change/edit reboot command to “rebooot” (Edit pre-existing terminal commands) [duplicate]

Where does the terminal command (reboot) live? If I wanted to change it to "rebooot" or "rbt" what would I need to do? Without creating a separate bash script for a completely separate command.
19
votes
2answers
1k views

Does using -v (verbose) slow commands down?

In this question: How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash? it is asked how to delete all file in a folder, and not the folder itself. Matts ...
7
votes
4answers
424 views

What do the paranthesis and $ sign mean in echo $(ls)

The output of # ls and # echo $(ls) are the same. What exactly does the $ sign and the parenthesis mean? Also, what is going on a technical level that causes the output of these two commands ...
1
vote
0answers
10 views

Thinkfan refuses to start

Thinkfan used to work before, but when I try to start it now, I get the following error messages. Does anyone have experience with that issue? I can't make any sense of it. [~] $ sudo ...
0
votes
0answers
17 views

Sublime-Text 3 build and run in terminal

So I'm using sublime-text 3 for programming. I write PHP, Python and C++. I like that Sublime-Text is able to compile my code. But problem is that when I want to use input in C++ or Python, then ...
15
votes
4answers
9k views

Script to display all terminal colors

Throughout the internet I have seen many people with scripts that prints out a bunch of stuff in all the colors defined in ~/.Xdefaults. However when I try to use these, I always get error: Bad ...
1
vote
2answers
39 views

Open an existing file in Vim

I would like to open a file that already exists while already in Vim. What is the command to do this?