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

learn more… | top users | synonyms (6)

1
vote
1answer
90 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 ...
12
votes
1answer
359 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
13 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
389 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
28 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
38 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
19 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
20 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
21 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
106 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
25 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
110 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
34 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
40 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
36 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
32 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
184 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
36 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
63 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
34 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
22 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
24 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
40 views

update my Flashplayer plugin in Mozilla Firefox via terminal [on hold]

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
40 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
41 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
38 views

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

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

spawn, send .. command not found. Can't run script file ubuntu server [closed]

#sr/bin/expect #!/bin/bash set timeout 20 set user abcabc set password abcxyz spawn su $user expect "Password:" send "$password\r" #interact expect "#" send "killall nodejs\r" expect "#\r" expect eof ...
2
votes
1answer
52 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
20 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
267 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
28 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
475 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 ...
2
votes
1answer
42 views

How can I get a directory name by a window dialog called in shell script?

I have a shell script and want to get a directory name chosen by a nautilus dialog (or other tool). Ex: #/usr/bin/bash # choosing a path name export my_directory=`pwd` # open a nautilus dialog (1) # ...
0
votes
0answers
19 views

Invalid MIT-MAGIC-COOKIE-1 keyxrdb: Resource temporarily unavailable xrdb: Can't open display ':0'

When using: sudo -i I get this error everytime. And running Ampps using cause this error Invalid MIT-MAGIC-COOKIE-1 keyAmpps: cannot connect to X server :0
-3
votes
0answers
25 views

How to use terminal to download anything [duplicate]

I use wget to download from terminal. so far I find ubuntu great, easy access to everything, but i need a trick to target specific file types e.g mp4 vids. help please
2
votes
1answer
32 views

Pipe newest log file to awk

OpenHardwareMonitor makes log files with date in names in this form: OpenHardwareMonitorLog-2016-06-16.csv. On the following day, when computer is started again, the program makes new log file with ...
2
votes
4answers
82 views

How do I run any application as root? [duplicate]

While logged in as the root account of a CLI installation, almost every application gives me this error: Don't run this as root! I want to bypass this error and run the application while logged ...
0
votes
0answers
34 views

Launch app with Unity Launcher vs Terminal?

I have ubuntu 14.04 and ros indigo in my system. When I use any application (e.g. eclipse + PyDev or spyder) to run python code for ros (very simple code such as import roslib). If I launch the app ...
3
votes
1answer
20 views

Non-graphical terminals take a long time to log in

When I log in using SSH or after pressing Ctrl+Alt+F1, it takes several seconds after I enter my password to finally show the following: Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-28-generic x86_64)...
3
votes
0answers
28 views

Problem with wget and file extensions

I'm using wget to download a website that is a problem archive, some problems are available in html and some others are in PDFs in the same domain. The problem is when I use the option --adjust-...
4
votes
4answers
615 views

How to copy or move a file from a folder to desktop?

I am a beginner and I want to copy/move a file from a specific folder to the desktop. I use cp and mv for those tasks. But I want to copy/move to the desktop. Say I want to move file1 to Desktop, I ...
0
votes
1answer
40 views

Pass a Number Value into a Shell Script

I regularly run a .sh script that has a list of menu options and expects a value from 1-7 that corresponds to a list of menu options. 99% of the time I use the same option (#6) so I'm trying to figure ...