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

learn more… | top users | synonyms (6)

1
vote
2answers
145 views

How can I give a script its own icon in the Unity launcher?

With Ubuntu 16.04, if you create a launcher (desktop file in ~/.local/share/applications) with a custom icon for a terminal application (so with Terminal=true) then when you start it, it will spawn a ...
2
votes
3answers
50 views

What do I have to do to have a program I downloaded show up in “Search your computer and online resources”?

I downloaded Android Studio, and untared it in /usr/local as I read I should to avoid it eating /home space. Then I added the path to the /bin folder to the PATH variable, but I still can't execute it ...
0
votes
1answer
51 views

Cron job to set screen brightness not working in ubuntu 14.04

In the terminal, I ran: crontab -e Then I added the following cronjob in the file 26 21 * * * /usr/bin/xbacklight -set 80 This was supposed to set the brightness to 80% at 9:26 PM. But its not ...
21
votes
5answers
24k views

'Insufficient permissions' error on `adb push` command on 12.04

When I tried to push my apk file into a tablet, I got this error, please help me out. adb server is out of date. killing... * daemon started successfully * error: insufficient permissions for ...
1
vote
4answers
11k views

How can I copy/paste files in the terminal window (SSH)?

I am new to ubuntu and my friend told me to SSH into my IPod so i can put/remove songs on it. I've been succesfully ssh'ing into it but i do not know how to copy and paste my songs from my Home ...
0
votes
0answers
19 views

New user can't log in

I need help. I just installed today on drive d of my laptop. After install it took me a while to fathom out that my password did not show, but finally fathomed it out. Problem now is I have a black ...
1
vote
3answers
1k views

How can I fetch random words from an electronic dictionary database or text file?

Is there a way to get random words from the dictionary databases like from the dict-wn or freedict's packages? I'm looking for a way to do that by either using a bash script or try a command tool if ...
0
votes
0answers
14 views

What is the problem with “/usr/bin/dpkg”? [duplicate]

I have a problem on terminal. I have tried to install apache2 but the terminal displays an error: How to fix the problem?
0
votes
0answers
9 views

Terminal is closing upon opening [duplicate]

Terminal is closing immediately after opening. I managed to open an alternative terminal with: env SHELL=/bin/sh gnome-terminal When I type ''bash'' in the alternative terminal: # bash ...
0
votes
1answer
9k views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler (arm-...
0
votes
0answers
14 views

when I perform service privoxy start in bash, I can't find the binding port 8118

I have modified the configured file about privoxy in /etc/privoxy/config file. listen-address 0.0.0.0:8118 forward-socks5 / 127.0.0.1:1080 . When I perform sudo service ...
15
votes
2answers
4k views

Why do I need root privileges to umount a drive at the command line, but not in Nautilus? How to change that?

When I insert a thumb drive, media card, or USB hard drive, to unmount it via the command line, I need to use: sudo umount /media/the_device But, I can unmount the device in a file manager like ...
0
votes
0answers
11 views

yarn-env.sh : command not found

I have Hadoop 2.7.2 installed on Ubuntu 16.04. When I run the command: start-yarn.sh It gives the following output: starting yarn daemons /usr/local/hadoop-2.7.2/etc/hadoop/yarn-env.sh: line 122: ...
10
votes
7answers
68k views

How to display file properties via terminal?

What is the command line that displays file informations (or properties), such as in GUI method Display properties in GNOME? I know that ls -l shows properties; but how to display the same ...
2
votes
1answer
513 views

Getting gnome-terminal to run tmux on start

I'm trying to figure out how to get my gnome-terminal to launch run tmux -2 on starting. I have tried modifying the Exec lines in the gnome-terminal.desktop file to Exec=gnome-terminal -e -tmux -2 and ...
1
vote
1answer
548 views

How to execute an arbitrary command when open a new gnome profile terminal?

I want to create a profile terminal that executes this command rvm use 1.9.2 and leave me in the prompt after choosing my ruby version. user@user-desktop:~/Sites/RailsApp$ rvm use 1.9.2 Using /home/...
0
votes
0answers
10 views

run virtualenv in new terminal tab automatically

I am using virtualenv, so to start I have to say source some/long/path/bin/activate Sometimes (very often, in fact) I want to create another tab in terminal, to edit another script, or to run ...
0
votes
0answers
17 views

Stuck at grub rescue and when I type “ls” it comes up with “unknown command”

I'm running Ubuntu 12.04 on an old HP Compaq. When I boot the computer it goes straight to grub rescue saying: "error: symbol not found: "grub_register_command_proi"". After looking on various forums ...
2
votes
1answer
24 views

Is there a CLI software center that supports reviews and ratings?

If I can help it, I'd rather not use the GUI, so I don't want to use gnome-software when looking for new software, is there some sort of CLI 'software center' which also has the ability to show and ...
2
votes
0answers
40 views

ALSA Keeps Throwing Me Errors, really Frustrating

The Situation So my sound cards aren't totally fried, and everything works fine, it's just annoying when working with python scripts and Speech Recognition for Python. This being the result of my ...
2
votes
2answers
150 views

Combining 2 commands

I need to write a shell script for converting characters in a file to lowercase and replace non alpha chars to _. I have separate command for both the above. How to give a file as argument and make ...
1
vote
1answer
2k views

How is it possible that I can execute JAR file from shell?

I always thought, only executables in UNIX/Linux are ELF-files and shell scripts. But i found that it is possible to use just $ ./file.jar instead of $ java -jar file.jar. How are JAR-files special? ...
1
vote
1answer
32 views

The -o parameter in aria2c can't rename the downloaded file

aria2c -S /home/se.torrent Files: idx|path/length ===+=========================================================================== 1|./test.mkv |283MiB (297,429,086) ---+---...
1
vote
0answers
30 views

What are these memory strings? What do they do? [migrated]

Recently, I dumped my memory strings (just because I could) using sudo cat /dev/mem | strings. Upon reviewing this dump, I noticed some very interesting things: .symtab .strtab .shstrtab .note.gnu....
21
votes
4answers
46k views

iTerm 2 equivalent

Is there an iTerm2 (terminal application for Mac OS) equivalent for Ubuntu? Amongst the many features it adds the one I'm after is the "hotkey window", where you can overlay/hide a translucent ...
5
votes
3answers
3k views

Google query from terminal

Is there a way to launch a google query from the terminal? Like starting up google (as in firefox www.google.com) but with a search query? It would be nice to not have to install any extra programs ...
95
votes
9answers
92k views

How to change Gnome-Terminal title?

I have several instances of terminals running in my working environment, what I would like is to set a specific title for each one, in order to have a clear idea what purpose the specific terminal ...
232
votes
7answers
487k 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 ...
16
votes
3answers
1k views

How to paste commands into a TTY?

I have some rather long commands and file paths which I have copied to clipboard and need to execute in a TTY, however the file paths are too long to retype and I would like to just paste them in ...
0
votes
3answers
4k views

i just upgraded to ubuntu 15.04 but i cant launch the terminal

the question says it all i just cant get into the terminal and I've tried the control alt t thing to it still wont pop up please help !
-1
votes
0answers
18 views

How to create keyboard shortcut form terminal/shell script [duplicate]

I've already known that I can add custom keyboard shortcut via setting >> keyboard >> shortcut >> custom shortcut. But i want to do it from terminal or shell script which i can't find a way to do ...
0
votes
1answer
20 views

Delete all hidden files recursively in current directory [duplicate]

I have a directory which contains hidden files and by that I mean, not just the files whose name starts with . but also the files whose name contains ~ character at the end like somefile.txt~. I want ...
-1
votes
0answers
17 views

Trying to open chromium browser from putty/terminal [on hold]

I am trying to execute the following command on terminal (CentOs6.7): chromium-browser http://google.com/ I got the following Error: (chromium-browser:2036): Gtk-WARNING **: cannot open display:
0
votes
1answer
26 views

Ubuntu alias rename directory issue

I have Ubuntu 14.04 Trusty Tahr installed in my system. I have created following alias in my '~/.bashrc' file to make renaming directories recursively in current folder, as easy to use short command. ...
4
votes
1answer
233 views

Everytime I use a sudo command it says >>>/etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1<<<

I got the following error while using the sudo apt-get update command. :~$sudo apt-get update /etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1 <<< sudo: parse error in /etc/...
0
votes
0answers
23 views

How to know the utilization of intel CPU and GPU in Linux? [on hold]

In ubuntu, to know the time taken by CPU to run a program we would use 'time' in terminal. Whereas in case of intel GPU, we would use 'intel_gpu_time'. But in case of CentOS 'time' command works. But '...
2
votes
1answer
31 views

Can I execute a program with a sudo command through a shortcut? [duplicate]

I've created a file containing these two lines of code: #!/bin/sh sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" I have ticked (from 'properties') the appropriate box to run the file as a ...
-1
votes
0answers
15 views

install mrtg-2.17.4 ploblem?

I'm install mrtg-2.17.4 on Ubuntu 14.04 follow http://oss.oetiker.ch/mrtg/doc/mrtg.en.html ,but can't install how should i do ,help? Thanks. ~/Downloads/mrtg-2.17.4$ ./configure --with-gd=/...
1
vote
1answer
44 views

Pass sudo command from GUI [duplicate]

I have a shell script using some sudo command. When I run this script from terminal - it asks me for password and runs with any problem. But when I try to run executable shell script form GUI (double ...
3
votes
0answers
13 views

How to re-create the x-terminal-emulator alternative?

I've just installed Ubuntu Gnome 16.04 and while tryng to add "terminix" as the default terminal emulator I've messed up really bad the x-terminal-emulator alternative, totally my fault! I'd enter ...
0
votes
0answers
20 views

KindleGen installation

Before I came here, I searched the internet to find a solution but in vain. I cannot install the KindleGen plugin on Ubuntu 14.04 so that the Kindle comic converter can convert my jpeg images into the ...
0
votes
0answers
16 views

why did my terminal turn black but it works?

Ok so here is what happened, I installed Ubuntu and my terminal has always been purple and I had locked to the launcher for easy access I stopped using about two weeks ago but today I needed it and ...
0
votes
1answer
44 views

Installing 3rd party C library. Several errors I've had before whose fixes aren't the solution this time

I am attempting to use a third-party C library. Once I'm in the directory for the unpacked file I run ./configure and get: configure: creating ./config.status config.status: creating tests/Makefile ...
0
votes
0answers
15 views

Get the list of installed packages with install time, date and vendor details [duplicate]

I am trying to get package name with version, splitted package and version, vendor of that package, install time and date using: locate dpkg.log | xargs cat {} | grep "install" | awk '{print $5$6, $5,...