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

learn more… | top users | synonyms (6)

8
votes
4answers
5k views

How do I get a list of running applications by using the command line?

I want to list only running application like: Firefox, gedit, Nautilus, etc. using the command line. Note: I don't want to list all running process, only applications which are running (say manually ...
51
votes
6answers
519k views

How to copy files via terminal?

I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do: Examples: I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy ...
1
vote
0answers
18 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
28 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 ...
0
votes
2answers
123 views

My internet is very slow and freezes-unfreezes-freezes-unfreezes (16.04)

I'm wondering if there's a command I can write in Terminal to search for and update any outdated things (like network drivers, adapters, etc)? I have a Lenovo ideapad. When it ran Windows 7, the ...
-1
votes
2answers
68 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/...
0
votes
0answers
45 views

What Terminal changes can I make? [on hold]

I would like to know if any of you got some useful changes to make for the Terminal which makes it easier to use. Like changing the settings and adding features to make it all easier.
2
votes
1answer
3k views

How to open a file with LibreOffice Writer from Terminal?

I use LibreOffice Writer a lot, but I really do hate getting around in a GUI, I much prefer the CLI, so is there any way to open a file using LibreOffice Writer through the Terminal?
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
90 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 ...
22
votes
5answers
12k views

In the output of 'ls -n', what does the the second column mean?

When I run: ls -n I get something like: -rwxrwxrwx 1 1000 1000 765528 2009-10-15 18:41 file1 drwxr-xr-x 10 1000 1000 4096 2010-12-07 20:50 dir1 drwxr-xr-x 3 1000 1000 4096 2010-10-24 ...
-3
votes
0answers
42 views

There is no desktop only terminal ELEMENTARY OS FREYA [on hold]

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 ...
20
votes
5answers
12k views

What's the equivalent to 'explorer .' (Windows) or 'open .' (Mac)?

Inside the terminal, I could use the command 'explorer .' in Win32 or 'open .' in Mac to open GUI explorer/Finder. What's the equivalent command in Ubuntu?
1
vote
4answers
7k views

Run .sh script on Ubuntu without using terminal

I'm using Ubuntu and I've created a simple script file: #!/bin/bash cp /home/guilherme/pictures/*.jpg /home/guilherme/backup When I run it on terminal typing the command "./script.sh" it works fine....
275
votes
17answers
400k views

How do I fix my locale issue?

I am getting this message every time I do something like starting or stopping a service. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: ...
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.
0
votes
0answers
14 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 ...
-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
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-...
19
votes
2answers
14k views

“sudo cd …” one-liner?

Occasionally I want to cd into a directory where my user does not have permission, so I resort to sudo. The obvious command sudo cd somedir doesn't work: $ sudo mkdir test $ sudo chmod go-rxw test $ ...
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 ...
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 ...
7
votes
5answers
845 views

How to use syslog for else output ( show up with whois - query )?

There is log-file /var/log/syslog with the output of ip-addresses like e.g. SRC=10.158.0.1. I want to scan from this file every printed address in SRC= ... and then to make query with whois (SRC= ...)...
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 ...
1
vote
0answers
31 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
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/...
89
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
5k views

How to upgrade Xampp to the newest version

This might seem like a silly question but by golly I've tried and tried for a whole week and no results. I don't know if it's something wrong with my queries, or too much "Install Xampp" clutter in my ...
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 ...
0
votes
0answers
15 views

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

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
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 ...
207
votes
11answers
240k views

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
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 ...
4
votes
2answers
135 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 ...
5
votes
3answers
4k views

How to scroll in the Terminal app “top”?

I've read the info page, but I can't find any way to scroll the list in top. Maybe there is no way to scroll?... but there must, at least, be some way to filter the list, and I can't find that ...
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.
5
votes
1answer
216 views

How can I change the cursor in vim depending if I'm in insert mode or normal mode? [on hold]

I'm used to working on GVim, but I want to make most of vim+tmux too. Therefore I have decided to switch to vim. But in vim the cursor style does not change depending on the mode. I use zsh and ...
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 (...
-3
votes
0answers
35 views

is there possiblity to show full path of all files which have either hard or soft links with commandline [duplicate]

How can I use the terminal to show the full paths of all files which have either hard or soft links? This is not the same question as How can you quickly get the complete path to a file for use in ...
0
votes
1answer
37 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 ...
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 ...
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.". ...
5
votes
1answer
95 views

ImportError: No module named Selenium2Library

I am quite new to Robot Framework and I could use some help. I'm using Ubuntu 14. And I have installed Robot following these steps: # Python package management tool pip. sudo apt-get install python2....