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

learn more… | top users | synonyms (6)

0
votes
0answers
16 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!
-1
votes
0answers
16 views

Error with Packages [duplicate]

I had this big red circle with a white minus sign on my notification bar something like this. An error occurred please run Package Manager from the right-click menu or apt-get in a terminal to ...
0
votes
0answers
21 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
51 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
30 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
votes
0answers
35 views

Running apt-get update returns “<package> is configured multiple times” [duplicate]

I get these errors when I run sudo apt-get update on Ubuntu 16.04: $ sudo apt-get update Fetched 94.5 kB in 1s (53.8 kB/s) Reading package lists... Done W: Target Packages (partner/...
1
vote
0answers
33 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
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 ...
1
vote
1answer
52 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 ...
0
votes
0answers
15 views

I cannot uninstall “wine” on my macbook air (10.11.5) [closed]

I tried to install wine via Macports but somehow it doesn't work. I'm guessing it is because the installation process was interrupted by power shortage. So, I want to delete the wine files and re-...
1
vote
1answer
15 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
28 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
35 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
42 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
136 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
45 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
58 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.
0
votes
1answer
38 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
64 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
15 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
41 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 ...
2
votes
1answer
99 views

Based on certain patterns exclude lines in file [duplicate]

My file looks like this [0.00137532,[0,13,19,16,18,15,19,16,11,15,12,12,13,14,0,11,17,18,14,17],[0,0,0,0,0,0,0,0,0,0,0,0.0189924,0.0871235,0.179813,0.307779,0$ SITE: 0 0.000853196055 0....
1
vote
1answer
33 views

APK versionName grep

Im trying to retrieve the VersionName of a bunch of apk files i have in different folders and store them in an array , but its not working ... I've tried pretty much everything but it only loops 1 ...
0
votes
0answers
19 views

What is the standard syntax of the su -s command? [duplicate]

i don't sure about the syntax of the su -s command to use an new shell instead of the default.i hope i will get the answer from you.
0
votes
1answer
40 views

Replacing a variable permanently in shell [duplicate]

I have file <temp_test.sh> in which I have defined a variable Min_Inc=300000. I then want to get the user input to change the value of Min_Inc. I followed these steps. Read the value using ...
0
votes
0answers
31 views

Is `cp -R /usr/local/blah /removabledrive` a reasonable way to do a backup?

I'm resetting my Mom's computer because, due to poor maintenance, i.e not deleting anything, it's become too slow to be efficient in anything. She wants to keep just about everything, so nit picking a ...
-2
votes
1answer
30 views

sudo apt-get curl and sudo apt-get wget gives “Invalid operation”

I am very fresh in Linux. I tried to use the sudo apt-get command to install both wget and curl utilities. To do that I ran at the following CLI commands: sudo apt-get curl sudo apt-get wget Both ...
0
votes
0answers
46 views

Extract data from logfile from only the previous 24 hours, with bash in a shell script

Using the Ubuntu 14.04 trusty and transmission log for the log file. What is the best way to extract the last 24 hours of log entry's? I have attempted using sed awk grep I cannot seem to get the ...
5
votes
3answers
233 views

How to create my own terminal commands [duplicate]

I know how to create my custom terminal commands and that would be really useful for me in compiling all my java classes in a folder. I also see that for doing this people usually creates a folder ~/...
93
votes
12answers
9k views

Generate white noise to calm a baby

I have a three week old baby. Occasionally she refuses to sleep. Some people tell me this is the way life is, some people tell me I need to buy things to fix it. This is becoming an alarmingly common ...
0
votes
1answer
31 views

how to connect server using linux terminal? [closed]

I am currently using PuTTY to connect to my Linux server. However, I feel like it is unnecessary. Is there a way for me to connect to my Linux server directly from my terminal?
1
vote
0answers
21 views

LinuxDC++ not closing

I have Ubuntu gnome-desktop 16.04 installed in my laptop. The file-sharing network software Linuxdc++(linuxdcpp) is not closing properly in my machine. It started a week ago. When I open it all my ...
1
vote
0answers
24 views

VLC media player 2.2.1 is choppy

Ubuntu version is 14.04.1. VLC is choppy depending on how it's started. From the console window this command works fine: /usr/bin/cvlc -vvv /home/matt/Hockey_Footage.m2t --sout udp:239.204.1.106:4000 ...
1
vote
0answers
16 views

terminal x clipboard 0~ prepended 1~ added

With the X clipboard, I often have 0~ prepended and 1~ added to it. That seems to happen often in gnome-terminal. So in a terminal, let's say I highlight abc, then when I middle click, it will become ...
0
votes
0answers
33 views

How to see all the lines from terminal when the computer last time was turned on

3 days ago my computer was turned on and executed some script file. There was a problem and i didn't make a logger for this script. So how can i get all the lines(logs) from terminal when my computer ...
0
votes
0answers
56 views

How do I revert back to the Default terminal theme? [closed]

I tried to install many terminal theme with GITHUB. But I want to revert back to the Default. How can I do that?
0
votes
0answers
21 views

How do i connect to Wifi thorugh Terminal in Ubuntu 14.04? [duplicate]

After searching many answers i tried sudo su command which asks me for a password which i m unable to enter. Also when i try wlan0 it says no device found. How do i connect to my WiFi.Please explain ...
0
votes
1answer
21 views

Is this the best way to see my running processes? [duplicate]

So obviously the title says it all. Is this the best way to view my running processes? ps -u whoami
1
vote
2answers
33 views

How to add ID3 “cover art” by command line?

I need to add ID3 cover art to some MP3 files. I need a command line tool (no GUI) but it seems that neither id3 nor id3v2 tools can do it. Any hint?
-4
votes
0answers
46 views

What is it? Help me please [closed]

N: Ignoring file 'trusty-dell-csmb-vivid-skl.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'trusty-oem.list.disable' in directory '/etc/...
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
1answer
31 views

How to make added PATH permanent [duplicate]

I recently installed Swift 3.0 on my Ubuntu 16.04, and if I want to access the swift shell, I have to put in export PATH=/home/thebigfootsdad/Downloads/swift-3.0-preview-1-ubuntu15.10/usr/bin:"${...
4
votes
3answers
209 views

How do I edit a manpage?

I want to know if a manpage can be edited. If yes how? (If possible by changing in gedit). P.S.- I want to know if a manpage already written can be edited (just for fun).
2
votes
0answers
39 views

Burg installing

I tried installing Burg to make my dual boot look better. So, I followed these instructions up to the part where it says: "BURG found! Do you want to configure BURG instead of grub2?, click Yes.". ...
3
votes
2answers
62 views

Changing the login shell

If I change my shell with chsh to a shell that I wrote myself, which scripts does it need to execute? I already tried changing to my own shell and surprisingly it worked without an error msg. Now does ...
-1
votes
0answers
31 views

How to usb tethering in kali linux? [closed]

I need to usb tethering for internet. I'm using kali linux live boot persistence.
0
votes
1answer
46 views

Linux restrict user to specific folder in var/www

My apache root /var/www/html/ contains the following folders. myapp test testapp I want to create a new user to access only testapp folder (read/write). Other folders shouldn't be read. I created ...
0
votes
1answer
34 views

Run my bash script on login and SEE terminal [duplicate]

i need your help :) I have some script that start on login (I set it on Application launcher preference) but i can't see terminal. One script it's easy and make light on on my CMstorm keyboard and set ...
0
votes
0answers
18 views

Problem with non-root users crontab and CLI PHP

I'm stuck with the following problem and cannot seem to resolve it and would like some help if possible... I have created a user (lets call it user) and have edited the crontab for that user and have ...
0
votes
0answers
22 views

Creating A Drag and Drop Bash Script for wipe

WARNING: This question contains dangerous commands. Do not execute these commands on your own computer unless you wish to lose data. I have been using the command like program 'wipe' for ages with ...