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

learn more… | top users | synonyms (6)

0
votes
0answers
32 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
49 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
278 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 ~/...
97
votes
12answers
10k 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
34 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
23 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
25 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
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
39 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?
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
41 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
63 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 ...
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
19 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
50 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
51 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
58 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
41 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
48 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
69 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
570 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 ...
0
votes
1answer
32 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 ...