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

learn more… | top users | synonyms (6)

10
votes
3answers
849 views

Can I use '!!' in aliases or scripts?

In the Terminal I can use !! which will reference my previous command. Is it possible to use this in an alias? I have tried it, but what happens is that the double exclamation marks are interpreted ...
3
votes
2answers
280 views

Can I make a screen switch from one computer to another by cli?

I have my monitor hooked up to computer A via DVI and to computer B via VGA. If I start PC A first and PC B last, the monitor displays PC A's signal. Is there an easy way to change between the two ...
7
votes
3answers
128 views

Can't locate a directory using “locate”? [duplicate]

I want to locate a directory in my system using "locate" command. I know there is a directory named "bench-repo". when I'm giving the following command it shows me the following error : locate: can ...
1
vote
0answers
26 views

How to prevent command execution edited with fc

I have FCEDIT set to vim. If I call fc command it will open vim with temporary file and contents of that file will be the last executed command from history. The problem is that even if I exit ...
1
vote
1answer
54 views

How to fix an interrupted OS update?

I'm using Ubuntu 16.04 and ran an OS update using the Ubuntu Software Center, which was interrupted by a power cut. The error message, A problem occurred when checking for updates. is now present, and ...
0
votes
1answer
16 views

Terminal Marked “Not Executable”, and owner is root. Ubuntu 14.04 Unity Desktop(Chromebook)

So for some reason, terminal didn't appear anywhere when I tried to find it in my applications. So I went to the usr folder in my computer, and searched "terminal" there. I found it, but it was all ...
1
vote
2answers
46 views

service command not found

I'm trying to start ssh using: service sshd start but the service command can't be found, so it gives me an error: zsh: command not found: service What should I do? EDIT: I added /usr/sbin to ...
1
vote
0answers
16 views

when I try to copy text from the command line strange characters appear

when I try to copy text from the command line strange characters appear. I have never not been able to copy and paste in the virtual terminals. I tried installing GPM just in-case, but it did not ...
0
votes
0answers
56 views

My bash script for Grive2 works well in Ubuntu Mate but for some reason it doesn't in Lubuntu

I'm new and I'm learning English so please don't be too rude if i make things wrong, but tell me if I'm not doing them good, of course. Hello community!, by the way. Anyway, getting to the point of ...
3
votes
2answers
96 views

Ubuntu Touch change system settings from command line (silent mode specifically)?

I'm looking for a way to automatically set my Ubuntu Phone to silent mode during the night and automatically turn off silent mode in the morning (I keep forgetting to turn it off myself). I figure ...
0
votes
1answer
85 views

Ubuntu 16.04 , Steam refuses to work (Update 3) [ FIXED ]

FINAL UPDATE : fixed it on my own. I'm unable to launch steam , not from its icon in the dash , or from command line. i installed steam from the offical steampowered website since for some reason its ...
1
vote
1answer
136 views

How to install .tar.gz files which don't have .config file?

I understand that a .tar.gz file can contain anything, but many software packages are available for download as .tar.gz. In my example, I am trying to install the flash player. I downloaded the file ...
13
votes
2answers
392 views

What is the difference between locate/whereis/which

What is the basic difference between locate whereis and which command. The basic difference that I observed is that locate locates all the related file names in the entire filesystem, whereas ...
0
votes
0answers
16 views

Guake - How to make it look like a real FPS command line?

I've just download Guake, I like it, but the way it comes it doesn't fully satisfy my tastes. I'd like to know how to move the input line to the bottom of the shell, but I can't figure it out... ...
12
votes
3answers
407 views

How to insert tabs before output lines from a executed command

Just a quick question. Is it possible to tab the output on Ubuntu 16.04 LTS? I've created two images below to try and illustrate what I mean by this.
0
votes
1answer
33 views

list of programs with apt installation with missing packages

I want to install a list of packages via the command sudo apt-get install app1 app2 etc I tried it, but due to a missing package, apt-get doesn't install anything. So I look in depth in man apt-get ...
3
votes
1answer
51 views

Convert files to MP4 in sub directories

I have my film and series collection in one directory, which obviously has a lot of sub directories and a lot of different formats. It's constantly being added to by all of us here. What I'd like to ...
0
votes
2answers
20 views

How to delete a file from another directory in ubuntu terminal

I'm starting learning Linux Ubuntu commands, now I want to learn how to delete a file from another directory while I'm in a different directory. Like, now I'm in Documents and want to delete "TEST" ...
0
votes
1answer
21 views

Unable to launch applications via GUI

I have downloaded, installed - Sublime Text 3, RStudio, VLC, etc using the official procedures mentioned. If i access these programs via Terminal, by running their respective binaries, it works. ...
0
votes
0answers
23 views

Script using zenity and ghostscript to compress PDF files modification

I need help to change the script I have to compress PDF files using Thunar file manager custom actions. The script runs well compressing one by one file, I want to make changes that all PDF files I ...
5
votes
1answer
107 views

Can not run a script downloaded with 'wget -o filename.sh <URL>'

I ran this: wget -o ready-for.sh "https://training.linuxfoundation.org/cm/prep/ready-for.sh" chmod a+x ./ready-for.sh ./ready-for.sh LFS265 and got the error: ready-for.sh line-1 command not found
0
votes
0answers
30 views

how to see all activities done on ubuntu 16.04 LTS?

I'm a user of Ubuntu 16.04 LTS, I have done some modifications like installing new packages and creating some directories and modifying files; Then I want to see all the activities that I have done ,...
3
votes
2answers
121 views

How to delete all first-level subfolders that do not have a specified string in their names

I know that there are quite a lot of answered questions about how to delete all files with or without a certain string in their names, as well as ones about how to delete all subfolders with a certain ...
0
votes
1answer
59 views

Set document metada failed UBUNTU 16.04

Is any one could help me to stop this behavior of gedit in Ubuntu 16.04 LTS. I have upgraded 14.04 to 16.04 . Now I am trying to open the gedit from terminal by passing the command: sudo gedit /...
0
votes
0answers
42 views

Can't run Python Script on double-click

I recently upgraded to Ubuntu 16.04 but lost all my installed programs for some reason and this is when my problem started. I could always run my scripts by double-clicking the icon, because I have ...
-1
votes
2answers
43 views

s3cmd asking for S3 URI while using s3cmd get

I have uploaded a mysql backup file onto amazon s3 s3://bucketname/object/mysqlbackupfile. When i am trying to retrieve it using s3cmd get s3://bucketname/object/mysqlbackupfile there is an error ...
-3
votes
1answer
41 views

-bash: !: event not found [closed]

I want to remove all folder and files except a folder named docs. echo !(docs) but I got -bash: !: event not found? I'm using mac default terminal.
4
votes
2answers
189 views

sorting a list keeping one entry from each duplicated line

ive have a list of films which i down load daily and comes in the following format act-of-valor-2012 act-of-valor-2012 the-possession-2012 the-possession-2012 american-crude-2008 american-crude-2008 ...
0
votes
1answer
40 views

Crontab runs /etc/init.d/ scripts but won't run service restart?

I am very new to Linux so please bare with me. I'm writing a script to restart mysql and send me an email whenever it goes down. I'm using crontab to run the script every x minutes. I'm having an ...
-1
votes
0answers
73 views

404 not found with sudo apt-get update

Can somenone help me? How can I solve those problems? Thanks in advice W: The repository 'http://ppa.launchpad.net/colingille/freshlight/ubuntu xenial Release' does not have a Release file. N: Data ...
0
votes
0answers
46 views

Can't Install popcorn-time

I am trying to install popcorn-time on my ubuntu computer, and I am having no success, I have looked it up but the terminal commands have not worked for me and the file does not go automatically to ...
0
votes
0answers
10 views

ring busy not shown in intel_gpu_top

According to the link https://dri.freedesktop.org/wiki/IntelPerformanceTuning/#intel_gpu_top It is shown that the important number is ring busy. But I am not seeing anything like that in my ...
1
vote
0answers
32 views

Unable to save buffered videos using terminal after update to 16.04

For the last 5 or 6 years using Ubuntu I was able to save buffered videos using the Terminal. I would wait for the video to finish playing and without closing the browser window I would run from the ...
3
votes
2answers
1k views

Difference between | and ||

What is the difference between | and || ? When I run this command : ls -la | id I get the result of id When I run this command : ls -la || id I get the result of ls -la So what is the ...
0
votes
0answers
27 views

Errors were encountered while processing: lightdm vnstat

HP-Notebook:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove ...
0
votes
0answers
57 views

update my Flashplayer plugin in Mozilla Firefox via terminal [closed]

I want to update my Flash player in Mozilla browser via terminal using commands. I tried it in the normal way by going to the Adobe site, but I don't know which type of file to be download, if you ...
0
votes
1answer
48 views

Install perl-tgicl on Ubuntu 16.04

I'm having dependency problems when trying to install perl-tgicl on Ubuntu 16.04 64-bit. sudo dpkg -i perl-tgicl_2.1-1_all.deb Selecting previously unselected package perl-tgicl. (Reading database .....
0
votes
0answers
42 views

How to know the utilization of intel GPU in ubuntu?

In case of nvidia GPU, if we use the command nvidia-smi --loop-ms=1000, it will show Here in processes ./ImageMagick has been added, which is my program. Thus my program runs in GPU. In similar way,...
-4
votes
1answer
39 views

What Desktop Environments are supported by Canonical except Unity? [duplicate]

I mean exactly Canonical supported in Ubuntu, not community-supported.
2
votes
1answer
56 views

How to run a terminal command after login (in Ubuntu Touch)

I'm currently using a Aquaris E4.5 Ubuntu Edition. Sure, it's working normally, but there's a terminal command that I want it to run everytime I boot my phone. The command is: gsettings set com....
4
votes
1answer
33 views

One command to get a running py script ID then kill it

I once asked for a script to control unity launcher auto-hide behavior and the community here was kind and clever enough to give me exactly what I needed here. Now I wonder if there is ONE command ...
1
vote
0answers
22 views

Why is my script for the powerbutton not working under 14.04 LTS an 16.04 LTS any longer?

I have an little homeserver based on ubuntu 16.04 LTS without a graphical userinterface. He was set up with 10.04 LTS an always upgraded. In version 13 I changed the behaviour of the power button via ...
0
votes
1answer
20 views

Simple way to count disk usage after a certain date

I am looking for a simple way to count the used space in a directory (and sub-dirs) from a certain date onward. This could be done by creating an exclude file with find and parsing this to du with an ...
5
votes
2answers
271 views

Why doesn't my awk pattern match the configure arguments of nginx -V?

I am trying to get just the configure arguments of compiled nginx on Ubuntu 14.04 using a command line. Running /usr/local/nginx/sbin/nginx -V gives us: nginx version: nginx/1.8.1 built by gcc 4.8....
6
votes
2answers
1k views

What does the -rd option mean in the cp command?

I have found a reference using the following command cp -rd * /folder_1/ and another one as cp -dr * /folder_2/ Can you please advise what are these options "rd" or "dr"?
0
votes
1answer
18 views

Make /www/html/ permanantly accessable to my web browses to install drupal sites

I am using chown -Rf www-data:www-data /www/html/* and chmod -Rf 777 /www/html/* to give my drupal cores permission to create a new site.(with and without *) I have also tried every variant of ...
0
votes
0answers
19 views

How can I get into my PC without an admin password in Ubuntu? [duplicate]

I have lost my password and i am also try to reset my password but this is not work for me so how i back my data please help
1
vote
1answer
29 views

My terminal went black, cannot see any text, how to reset its color?

I know many people have asked for changing terminal's font color and I followed many methods, but they didn't work. I think my problem is quite serious... This is how it looks like: A few months ...
7
votes
2answers
481 views

Is there any command-line software to create e-books from the scratch in Ubuntu?

I would like to automate e-book build from remote repositories. A command-line tool would be useful in this case. Is there any software for Ubuntu?
3
votes
0answers
47 views

terminal command | grep IP [migrated]

ifconfig -a | grep 10.16 inet 10.16.x.xx netmask 0xffffff00 broadcast 10.16.x.xxx inet 10.16.x.xx netmask 0xffffff80 broadcast 10.16.x.xxx I have replaced the numbers with x My aim is to ...