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

learn more… | top users | synonyms (6)

0
votes
1answer
29 views

Get key name from keycode

I am writing a shell script that uses xinput, and I would like to get a human-readable description of what the user has typed using the keycode from xinput. For example, A generates 38. Ctrl is 37. ...
2
votes
0answers
51 views

spaces affect the firefox commands in terminal [closed]

firefox -private & This command open private browsing . but the same command firefox -private& without space between ampersand and the -private option will only open normal browsing ...
14
votes
11answers
2k views

How to quickly move into and from deeply nested directories through CLI? [duplicate]

We know that using cd <directory> will open the directory, if it exists! Also, cd .. will take us up one level from the current working directory. But, when we have a nested dir with longer ...
7
votes
2answers
567 views

Count number of files in a folder per day

I can find number of all files in folder but I got pretty large number. find . -type f | wc -l #find number of files in DIR ls -lrt #list all files order by date How to ...
1
vote
0answers
31 views

Upstart services work in SSH session, but not in local terminal session

If I open a local terminal, and attempt to start an upstart service I get this error: service rsync status status: Unknown job: rsync But if I SSH in as the same user, it works fine: service rsync ...
0
votes
1answer
28 views

difference kill -9 pid and kill pid command [duplicate]

what is the difference between kill -9 pid and kill pid command ? Do they have different behavior ? i know that -9 is for "SIGKILL" signal
4
votes
3answers
279 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
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
0answers
20 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
24 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
29 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 ...
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....
2
votes
2answers
151 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 ...
0
votes
1answer
31 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 ...
0
votes
1answer
28 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. ...
-1
votes
0answers
20 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=/...
4
votes
1answer
280 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/...
3
votes
1answer
36 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 ...
2
votes
1answer
43 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 ...
0
votes
0answers
15 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 ...
0
votes
0answers
47 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
19 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
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,...
0
votes
1answer
50 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 ...
1
vote
0answers
55 views

Lubuntu: Remapping caps to backspace: 15.10 or 16.04

I've spent more time then I care to admit, attempting to change caps to backspace in Lubuntu on a spare computer (15.10), cause I want to switch to lubuntu as my main linux (with 16.04). Basically ...
1
vote
0answers
58 views

Literally Nothing is Working to Change the Colour of My Gedit Embedded Terminal

I know several people have asked here about how to change the colour of the embedded Gedit terminal, and I've thoroughly read those posts myself. I've tried everything, but mine is still white. I am ...
1
vote
1answer
37 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) ---+---...
0
votes
0answers
25 views

Bug fixing test/checker any tools in Ubuntu [duplicate]

Bug fixing test/checker any tools in ubuntu 16.04.Just,I want to know any process.
2
votes
1answer
97 views

Unable to copy files from linux server

While copying files from a Linux server to external hard drive, it shows the error message insufficient space in hard disk The hard disk is 2TB and the copying data size is 460GB. Why does it ...
0
votes
2answers
168 views

When I run the command sudo apt-get update , I found an error on ubuntu 16.04 LTS

yugasalabs-26@yugasalabs-26:~$ sudo apt-get update [sudo] password for yugasalabs-26: Fetched 94.5 kB in 1s (61.3 kB/s) Reading package lists... Done W: Target Packages (partner/...
-3
votes
0answers
52 views

There is no desktop only terminal ELEMENTARY OS FREYA [closed]

I installed elementary os now and first i tried to update it was slow so i did something else. When i came back to see it there was a black screen with down minus(idk what it is called). I rebooted My ...
0
votes
0answers
20 views

Terminals Database is inaccesible

Whenever I try to use clear command to clear the terminal window, it shows 'Terminals Database is inaccesible'. Can somebody fix this issue? Thankyou!
0
votes
0answers
37 views

Ubuntu software not working

Opening ubuntu-software from commandline throws the following output (ubuntu-software:2564): Gs-WARNING **: failed to open plugin /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so: /usr/lib/gs-...
-1
votes
1answer
56 views

Joining streams

You normally can pipeline the operations a | b | c where b takes input from a and sends it to c. It has only one input, generated by a. But what if I want to replace a header in file b. I therefore ...
0
votes
2answers
32 views

Are log files written to when a buffer fills or in 'realtime'?

I have a script running which pipes its output through another script; that wrapper script adds a timestamp to each line of the log. However the data is being written to the log file in chunks of ...
1
vote
1answer
60 views

Apt-get issues removing redmine from ubuntu 16.04

yugasalabs-26@yugasalabs-26:~$ sudo apt-get remove redmine Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically ...
1
vote
1answer
47 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 ...
1
vote
1answer
59 views

Differences between ls and l command [duplicate]

I've accidentally stumbled into the l command in ubuntu which is pretty similar to ls, although the output is slightly different. For instance, the output of both commands in a directory with the ...
1
vote
1answer
34 views

How to start another user session from CLI on SDDM?

Currently the only way I know of is KDE lockscreen, but I also use openbox sometimes and while doing so have no way of starting a second user session.
-1
votes
1answer
29 views

Heroku aliases for zsh

To scale my heroku workers up and down I wanted to add an alias for them because of the frequency with which these commands are used. However when I tried to add the alias it did not work. For ...
0
votes
2answers
37 views

I can not access to normal terminal [duplicate]

I modified my bashrc via terminal and now when I open a terminal I can not do nothing either via Ctrl+Alt+F1, Can anyone help me to fix this. In both cases appears this: # ~/.bashrc: executed by ...
2
votes
0answers
66 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 ...
4
votes
2answers
144 views

Browse Ubuntu apps from command-line

I can browse Ubuntu Softwares in Gnome-Software. And they are catagorised very well . I am looking for a CLI version of this. That is, I would like to browse apps from terminal where I could list all ...
0
votes
1answer
64 views

I messed up the ~/.bashrc file and now terminal doesn't open ubuntu 16.04 [duplicate]

I just installed Android Studio on my ubuntu 16.04 machine and as I didn't want to go to its own home directory and now every single time I try to open the terminal, it tries to start android studio (...
0
votes
0answers
62 views

I always encounter this problem

If I want to install anything, it's giving me the output: E: Unable to locate package gksu What can I do now? I have tried everything. Nothing happened.
1
vote
1answer
59 views

CTRL+SHIFT+C/V not working in Terminal

I recently upgraded to Ubuntu 16.04 LTS and I found today that my copy/paste commands don't work in the terminal. I've tried every solution I could find with a bit of googling, but nothing seems to ...
0
votes
2answers
73 views

Start terminal in ubuntu with a python script?

How can I start a terminal in Ubuntu 16.04 with a python script, execute commands on that terminal, and retrieve the output from those commands? For example, I want to check the contents of a folder (...
0
votes
0answers
19 views

Sudo /bin/bash -c 'some command' does not load /etc/environment content, not set the env [duplicate]

I've got a bit confused When I do log in via sudo su - I get full environment loaded $ sudo su - # env SHELL=/bin/bash TERM=screen-256color LC_ALL=en_US.UTF-8 HTTPS_PROXY_HOST=myproxy.com ...
1
vote
1answer
44 views

Errors when I open terminal after trying to install Metasploit

I tried installing Metasploit on Ubuntu 16, using this webpage. Following the instructions, I got the following error sudo: exec: command not found While downloading Ruby rbenv, I forgot to do the ...