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

learn more… | top users | synonyms (6)

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
23 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 ...
0
votes
1answer
48 views

Black Screen after fresh install of ubuntu 16.04

After fresh install for Ubuntu 16.04 LTS and after typing some commands as: sudo apt-get update sudo apt-get dist-upgrade Than I changed the additional driver to nvidia priority and tested it, I ...
1
vote
1answer
27 views

show a group of specific lines from all files with .txt extension

How can I print specific lines (say the 7th to 15th) of each file in the current directory whose name ends in .txt? I Know About 7 and 15 it is done like awk 'FNR==7 || FNR==15' *.txt but if i ...
0
votes
0answers
21 views

sudo command terminal takes a lot of time to ask for password?

In Ubuntu Gnome 16.04 in the terminal it takes a lot of time to ask for the sudo password, for example when I use: sudo apt-get update or anything else.
1
vote
1answer
48 views

show specific lines from all files with .txt extension

How can I print specific lines (say the 7th and 15th) of each file in the current directory whose name ends in .txt?
0
votes
1answer
33 views

script in shell downloaded by won't execute

I downloaded this file: Renta2015_unix_1_30.sh changed the permission to executable but it won't execute. There seem to be a way to do it in terminal, but it requires the command cd and then the ...
1
vote
3answers
57 views

String Manipulation

var="<string> 1.11 </string>" I want to get rid of <string> and </string> How can I do it? For now i got this: var=${var:9:4} 1.11
1
vote
1answer
19 views

how to show all the non – blank lines of a specific file

how to show all the non – blank lines of a specific file Using Terminal The command grep -vP '\S' alpha shows only blank lines, but I dont know how to show all non blank lines in Ubuntu using the ...
4
votes
2answers
56 views

How to create backup CDs of my audio CD collection from the command line?

Using tools available to Xenial Xerus LTS how can I copy an audio CD to a backup CD using purely command line tools? AskUbuntu questions have the most part so far dealt with command line copying of ...
1
vote
0answers
33 views

service command fails silently

I am on Ubuntu Server 14.04 and I followed the instructions here to setup Apache ActiveMQ (5.13.3). However since activemq was not starting on boot I issued the command sudo update-rc.d activemq ...
-1
votes
0answers
21 views

script nameEror in python to make naver line bot [duplicate]

help this is my problem help my problem please master help me i dont know this script solutions for op in client.longPoll() op_list.append(op) NameEror in client.longPoll
-1
votes
1answer
49 views

Store file list of current directory to a file [duplicate]

How can I get a list of all files in the current directory and store that to a file named mycurrent using the command-line?
0
votes
1answer
27 views

How do I get rid of the syndaemon effect?

So recently I was playing some TF2, and my trackpad was really messing up with my aim. (I use a laptop.) I decided to search for some fixes that would only effect the trackpad. I came across the ...
1
vote
2answers
20 views

pv process interupting password

So I'm trying to flash an SD card with a 7GB image and it's taking forever (like 15 hours plus), so I decided to set up pv so I could see the progress. The problem I'm running into is that as soon as ...
4
votes
1answer
23 views

How to show keyboard chart of a specific layout variant from command line?

There is previous similar question but solution there didn't work for me in Ubuntu 16.04. I mean: gkbd-keyboard-display -l us,intl The commands below work but I want to be able to specify which ...
1
vote
2answers
55 views

Cron Job doesn't execute

I created a cron job as root with the command: crontab -e Then I added 0 4 24-31 * 4 /home/backupscript.sh after the last line. The output of crontab -e looks like this: # Edit this file to ...
0
votes
0answers
15 views

odroid board gpio error [duplicate]

Please help me solving this issue.I am working on odroid-c1 board and started with gpio programming and my code is: import time import RPi.GPIO as GPIO LED = 22 GPIO.setmode(GPIO.BOARD) GPIO....
1
vote
3answers
40 views

RuntimeError: This module can only be run on a Raspberry Pi!

Please help me solving this issue.I am working on odroid-c1 board and started with gpio programming and my code is: import time import RPi.GPIO as GPIO LED = 22 GPIO.setmode(GPIO.BOARD) ...
0
votes
1answer
36 views

Terminal is showing just blank screen

I am new to Ubuntu,I have installed 16.04.After installing cordova softwares to my laptop terminal is not showing anything.I have made few changes in .bashrc file to set path for android sdk,ANT,JDK....
-1
votes
1answer
29 views

how to show first 2 and last 2 line of all the files whose name starts with “file” [duplicate]

how to show first 2 and last 2 line of all the files whose name starts with “file”. with Command in ubuntu
3
votes
1answer
43 views

Compiling Cheese from source, fails to compile

I am trying to install cheese from source, and Im not interested in finding a package, because I have source code changes I should like to apply, if I can get it to compile. I have libtool automake, ...
3
votes
1answer
24 views

nmcli: How to get the “last used” connection

I'm trying to configure an auto wifi connection script for a remote system. You can connect to saved connection with this command: $ sudo nmcli c up "connection name" There are occasions where the ...
0
votes
1answer
20 views

Problems understanding how set works

Can someone please help me understand the following code segment? set -- ${BACKUPDIR}/backup-???.tgz lastname=${!#} backupnr=${lastname##*backup-} backupnr=${backupnr%%.*} backupnr=${backupnr//\?/0} ...
0
votes
1answer
40 views

Running a do loop

I am attempting to build a loop to check for files in a folder then run a loop if files exist in the folder and keep running the loop until no more files are left, but I am running into the token ...
0
votes
2answers
68 views

Colouring terminal output in 14.04 like in 16.04

I've turned my dual-boot into a triple-boot and I'm running Ubuntu 16.04 as well as Ubuntu Gnome 14.04. I've noticed that the terminal output of 14.04 is only coloured for directories. In 16.04 I ...
4
votes
3answers
566 views

ps aux | grep with a dot

I'm trying to write a script which greps for a running process. I'm trying to avoid the actual grep from coming back from the ps aux output. However I'm getting varying results if I use a dot or not:...
0
votes
2answers
34 views

Grep code explanation

In a file weather.xml, there is the string temp="103". I run this command grep -o "temp=\"[^\"]*\"" ~/.cache/weather.xml The output is 103. What does [^\"] mean? Thanks
-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 ...
-2
votes
0answers
35 views

Terminal crashes when I run firefox [closed]

When I run firefox from a terminal, the terminal window just closes. How can that be fixed? (I'm using Ubuntu 16.04)
0
votes
1answer
31 views

mkyaffs2image error in Ubuntu terminal

What is the use of "mkyaffs2image" in the following command in Ubuntu terminal? How to solve the error given below. sudo chmod 755 /usr/local/bin/mkyaffs2image /usr/local/bin/mkimage mkimage file ...
-1
votes
2answers
52 views

What is the meaning of gcc command

I wonder what does the command gcc -o sample sample.c really means and what it does in the system. I know gcc is the command to invoke gcc compiler, but what does -o and filename(without extension) ...
0
votes
1answer
23 views

Convert PostScript to PDF

I have multiple postscript files that I'd like to convert to PDF using a script. I'm not looking for script assistance, but rather assistance with what program would/could I use to make the conversion ...
1
vote
0answers
26 views

How to open 'Magnet' style torrent links from Firefox in rtorrent?

I am using the commandline torrent client rtorrent under Xenial Xerus and I would like to: Find and click on a 'Magnet' style torrent link with Firefox Have the 'Magnet' link opened automically in ...
1
vote
0answers
33 views

Is there a CLI alternative to Etherape?

Etherape is a very useful tool which allows you to see which IP address and/or domains your machine is connecting to, colour coding is used to show the network protocol used, and other information ...
-3
votes
1answer
45 views

display 1st and 10th line of user login [duplicate]

how to Redirect the list of all the users and their login date/time that are currently logged in into “data.txt” and display 1st and 10th line from data.txt
-2
votes
1answer
43 views

show the count of all the ordinary files from whole login [closed]

can any body help me on this Display the count of all the ordinary files from you whole login
-4
votes
0answers
50 views

Display the 5th to 10th lines of each file whose name ends with .sh [duplicate]

Any on help me on Display the 5th to 10th lines of each file whose name ends with .sh And Another Question(both questions are different not relate with each other) Q2 Redirect the list of all the ...
10
votes
5answers
1k views

Command to display an arbitrary message if a particular file exists

Is there a command to display message “Yes” if a particular file exists? No need to give functionality if the file does not exist.
4
votes
4answers
106 views

How to capture lines between two strings from a file, but only the last occurrence?

I have a log file which is output by a script, the log file is rotated daily. It will contain the strings Transfer started at timestamp and Transfer completed successfully at timestamp ...
0
votes
0answers
20 views

Matlab Command Line vs Tcsh Script

To run matlab desktop environment, I type in matlab on the command line ($SHELL = /usr/bin/tcsh). I then write a tcsh script containing a matlab script within it: Tcsh script #!/bin/tcsh -f matlab ...
15
votes
7answers
1k views

How do I retrieve only the needed line from terminal output?

I want to get only let's say third line of df -h output. What kind of command should I use?
0
votes
3answers
84 views

Looking for a light weight website monitoring tool

I am looking for a tool that can help me monitor the availability of my website. Basically, I should input my website URL to the tool and it should monitor whether the site is up and send the ...
2
votes
0answers
41 views

Log in as other user having GUI capability

Using Ubuntu 14.04 with Unity. I log in with my usual user (admin) in graphic environment. Once logged, I'd like to run GUI-commands like if I were another user (normal), to test a client-server ...
1
vote
1answer
34 views

Problem when I changed Fish to default shell

So I tried to make Fish my default shell with the command: sudo chsh -s /usr/bin/fish 'myUsername' Now I get this every time that I launch my terminal: Unable to open universal variable file '/...
-1
votes
1answer
45 views

Display all the lines which ends with the word “unix” or specific word in terminal [duplicate]

How to display all the lines which ends with the word unix in any given file and sorts those lines in ascending order.
0
votes
1answer
45 views

Enable/disable mousekeys via command line

My desktop has an old mouse that has broken left and right click buttons that always double-click. I tried to solve that by enabling Mousekeys from the Accessibility settings, but there are a number ...
0
votes
3answers
46 views

When I redirect to a “tty” where does it actually go on that “tty”, is it “stdout” or “stderr”

When I execute a command like: echo "Hello" > tty/pts/2 It will print the message on that terminal. Is it redirected to stdout or stderr of that tty?
0
votes
0answers
25 views

how to exclude application/x-executable files in below command

need to add application/x-executable file types in below command. there is no extension for those of files. the only thing i know is the file type is application/x-executable --exclude={.*,*.cbp,*....