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

learn more… | top users | synonyms (6)

0
votes
1answer
63 views

Date set from terminal immidiately reverts

I'm trying to set new date and time via terminal command: date --set "17 Oct 2015 20:30:00". However, it has no effect or reverts back to real time immediately. How do I force date and time to ...
26
votes
2answers
3k views

Why do I get a train when I run 'ls'?

I have recently noticed something odd that I don't like very much: So why am I getting a train upon running ls? And how can I stop this and make it behave normally? Is this an Easter Egg that I ...
2
votes
1answer
594 views

How to make a playlist from a directory of mp3 files?

How do you make a universal playlist from a directory of mp3 files? This question came up as my wife is a musician (violinist) and she has a gig, and the DJ at the event will be playing her ...
0
votes
0answers
246 views

Ubuntu “Failed fetch 404” during apt-get install [duplicate]

I'm relativly new to ubuntu (runing 14.10). When ever I try to install software through commands line, I always seem to get Failed to fetcher error. For example, installing terminator: sundeep@...
0
votes
1answer
37 views

Terminal won't let go of error [duplicate]

I was trying to install tox yesterday but it wasn't working, so I just decided to forget it. Fast forward to right now when i'm trying to install another thing and I can't 'sudo apt-get update' ...
0
votes
1answer
132 views

Junit4 giving “no tests found” when running junit on simple test cases

I need some help getting junit4 working on ubuntu 14.04. I have installed junit correctly (I hope!), when I use junit -v in the terminal it returns junit 4.11. However when I compile with javac: javac ...
0
votes
0answers
16 views

vnstat schedule usage period

Is there any way to measure internet usage for a scheduled period, using vnstat ? Purpose is to monitor how much data is actually consumed during my billing period, for a month which starts from ...
0
votes
1answer
46 views

Launching a .sh file at startup with variables

Basically, what I'm trying to do is get sudo ./razer_blackwidow_chroma_driver/scripts/driver/set_static.sh 255 60 0 to execute at startup. I've tried adding it to both /etc/rc.local and /etc/init.d/...
1
vote
2answers
50 views

Show n files in each directory with tree command

I have the following directory structure: bocoup_data/ ├── text_reuse │   └── v2 │   └── json │   ├── alignments │   └── texts └── topic_modelling └── v2 └── json I'...
0
votes
1answer
184 views

14.04.3 LTS Falure to start session at the login screen

I did a fresh install of Ubuntu 14.04 to nights back and installed gnome desktop environment. Everything was going great and i got everything fully customized to my liking, then ran sudo apt-get ...
0
votes
3answers
153 views

Adjust date and time informations inside several text files automatically from the command-line

I have a folder with several text files which content is something like this: text text more text Date: Thu, 31 Dec 2015 23:53:51 +0000 (UTC) more text some more I want that date and time to be ...
0
votes
0answers
82 views

How to run a simple c program from the ubuntu terminal of a Beaglebone

I am following this tutorial. So I wrote a simple c program: #include <stdio.h> int main() { printf("Hello, world!\n"); return 0; } built it in eclipse and when I navigate to the ...
1
vote
1answer
239 views

Terminal and Software center error, Please help

Whenever I do sudo apt-get autoremove I get this error output: abs@abs-Ubuntu:~$ sudo apt-get autoremove [sudo] password for abs: Reading package lists... Done Building dependency tree ...
5
votes
4answers
16k views

How do I check the version of Ubuntu I am running? [duplicate]

How can I check my current Ubuntu version through the command-line and GUI?
1
vote
1answer
245 views

Run a shell command AFTER a bluetooth input device is detected?

I'm trying to slow down my Magic Mouse sensibility using a xinput command automatically when my mouse is connected to my computer. I managed to create a file under rules.d, that calls a shell script. ...
2
votes
1answer
461 views

How to make an executable text file run a .jar file with arguments

I need to make a simple executable text file (preferably via chmod +x, but that isn't necessary) that runs a .jar file and passes in JVM arguments as well as jar-specific args. It must also run in ...
1
vote
1answer
49 views

How to point to the current directory while executing commands

This question must have been asked before, but I faced an error message that I couldn't find much about... I want to create a link for a directory (its content) ~/abc/def/ghi/ to another directory ~/...
2
votes
1answer
279 views

Reading/Writing To Serial Port Not Working

I am attempting to pass data through my serial port and see the result. I have added myself to the group for /dev/ttyS0 and run cat < /dev/ttyS0 on one terminal for reading of data. To write I ...
-1
votes
1answer
91 views

why does ls -Z returns files names with question marks next to them?

why does ls -Z returns files names with question marks next to them? And what does this command do?
4
votes
1answer
336 views

How to clear PS1's formatting in gnome-terminal?

I have configured gnome-terminal in .bashrc to have custom colours: PS1='${debian_chroot:+($debian_chroot)}\[\033[00;37m\][\[\033[00;32m\]\t\[\033[00;37m\]] \[\033[01;34m\]\u\[\033[00;37m\]@\[\033[01;...
-3
votes
1answer
84 views

No such file or directory in SSH [closed]

hadoopmaster@dhruvhadoop1:~$ cat /home/hadoopmaster/.ssh/id_rsa.pub >> /home/hadoopmaster/.ssh/authorized_keys hadoopmaster@dhruvhadoop1:~$ chmod 600 authorized_keys chmod: cannot access ‘...
2
votes
1answer
215 views

Howto: execute a custom application from pcmanfm in lubuntu

I run Lubuntu 14.04.3 LTS and I have downloaded and installed castnow to stream videos from my PC to my Chromecast. The only alternative I know is to do this via Videostream using Chromium. But that ...
0
votes
5answers
182 views

Bash get MD5 of online file

I need to get the MD5 hash of an online file, and then compare it to a file on the local machine. How can I do this in bash?
1
vote
1answer
47 views

dpkg was interrupted

When I wanted to install matlab support, it asked me to write the location of matlab where it is installed. After typing the location, terminal was blocked did not show anything for a while. Then I ...
0
votes
0answers
36 views

problems with TERMINAL and executing commands [duplicate]

i am experiencing a major problem with terminal ... each and every time i attempt to execute a sudo command i keep recieving this TrueType core fonts for the Web EULA ...
2
votes
1answer
126 views

Laravel CLI cUrl Error on Ubuntu 14.04.3 LTS

I have already installed the nginx, MySQL, HHVM and Composer, everything is working, so I installed the Laravel CLI to run laravel new blog from the terminal but when I run it i get this error: ...
0
votes
2answers
1k views

Rails server error: “Could not find a JavaScript runtime.”

trying to run the rails server i get this error: /var/lib/gems/2.1.0/gems/execjs-2.6.0/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/...
2
votes
0answers
29 views

VM Shared Folder [duplicate]

I am trying to use Ubuntu in a virtual machine on my windows computer. I am trying to set up a shared folder. When I put in the command sudo adduser carl vboxsf in terminal it asks for my password. ...
0
votes
2answers
772 views

How can I block “PUA.Http.Exploit.CVE_2015_1692”

I've been running Clamtk pretty regularly because my ubuntu 14.04 keeps bringing this "PUA.Http.Exploit.CVE_2015_1692" after each scan. I found that it is considered a Trojan in microsoft operating ...
1
vote
0answers
25 views

Installing RVM error

I am trying to install RVM for Ruby on Rails. This message appears: Requirements installation failed with status: 100. What do I need to do? How do I fix this?
1
vote
0answers
10 views

what is a default color of the bacground of command line terminal [duplicate]

Hey kinda of a lame qustion, but I just update my ubantu to biolinux and the color of my command line terminal got changed, its kinda annoying cause I'm used to dark purple color, Im trying to create ...
0
votes
1answer
91 views

Kill 2 other process with .sh Script

I have a radio.sh file. I start it from Java with: Process ls=null; BufferedReader input=null; String line=null; try { ls= Runtime.getRuntime().exec(new String[]{"/bin/bash", "/home/djeki22/...
-1
votes
1answer
68 views

can i load terminal before booting ubuntu 14.04?

When I download updates for my nvidia geforce 8800gt, the screen turns black and the cursor is blinking at the top left corner. I am forced to reinstall ubuntu. Is it possible to run terminal before I ...
1
vote
1answer
69 views

sudo apt-get update message

When I'm doing the sudo apt-get update I get this message: W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/vivid/main/binary-i386/Packages 404 Not Found E: Some index ...
3
votes
3answers
181 views

Bash Script - How can I get the size of directories in .txt file and save them into other file?

I started a few weeks with Linux bash programming, but I'm struggling with a problem: How can I get the size of multiple directories (path saved on a .txt file) and then, write into another file, the ...
2
votes
1answer
65 views

can you solve this? [closed]

if you have a puzzle and you want to solve it with computer... 6 characters the available characters is "NQAECFCYCPHY" what is the possible right words can you get? I tried to solve it with grep ...
0
votes
0answers
63 views

Ubuntu 14.04 become frequently unresponsive

I get the following error: Package : linux-image-3.13.0.66 problem type : kernelOops Title : unable to handle kernel NULL pointer dereference at (null) Annotation : your system might became unstable ...
0
votes
1answer
76 views

Need help with this shell script getting syntax error

I would like this to search for a file and if it's over 250M then download it. If not do not download it. echo "Name your file." read echo "Paste the url you wish to check below." read url if (( wget ...
1
vote
1answer
28 views

Pixilated display, clicks not working on Toshiba Satellite

I have an old toshiba satellite (A135-S2326) laptop I downloaded Ubuntu 14.04.03 and then booted it through a Usb. The problem is if it decides to actually boot and I get passed the log in screen. ...
1
vote
1answer
180 views

“Unable to locate package” When installing in Terminal [closed]

When I install softwares in Terminal it says Unable to locate package(The name of the software that I'm installing) a lot of times, what do I do? I use Ubuntu 12.04.
0
votes
1answer
108 views

Need help fixing Segmentation Fault

I'm still fairly new to linux and find myself making annoying noob mistakes. Yet, still loving the experience so what does that really say about me? I ran into an interesting problem that I'm not ...
4
votes
1answer
2k views

What starts accounts-daemon?

Question is simple: what starts the accounts service daemon on Ubuntu 14.04? root 11495 1 0 13:55 ? 00:00:00 /usr/lib/accountsservice/accounts-daemon pstree tells me that it's ...
3
votes
2answers
412 views

Creating Hello World from a command prompt, and then show results in Firefox [closed]

I want to make simple and quick programs through the command line and then show results in Firefox... And I find that Hello World is the simplest way to learn it :) How can I do it?
16
votes
3answers
3k views

tail a log file but show only specific lines

I'm tailing a log file with -f flag. Then I'm piping this to grep, to find only lines that contain "X". That's working perfectly fine. Now I want to pipe this again into another grep, that will remove ...
1
vote
3answers
176 views

Cant find terminal app in Ubuntu store

I got my bq Aquaris E5 today and I like it, but I cant find the terminal. I read on this site that I need to install the terminal app. But I cant find it in the store. I tried to change the phone into ...
0
votes
1answer
168 views

Which numbers; 0 or 1 disable/enable gconftool?

Will this command enable or disable unredirection? gconftool-2 --set /apps/compizconfig-1/profiles/Default/plugins/composite/screen0/options/unredirect_fullscreen_windows --type bool 0 I think 0 is ...
7
votes
1answer
384 views

Which files are sourced when using su -c?

Context You are working on Ubuntu LTS 14.04. You are logged in as the root user. You run the following command: exec su simple_user -c "/bin/bash /etc/init.d/simple_user_service" So that the "...
-1
votes
1answer
72 views

lvscan command not working

I installed fedora 20 with Ubuntu 14.04 and windows 7,then removed it. Now i have dual boot Ubuntu 14.04 and windows 7. In GParted there is a lock. How to remove it. I tried lvscan but it is showing: ...
0
votes
2answers
46 views

How to find what my custom command line command refers to

Some long time ago I've created a script which I've added to my Ubuntu system and I'm able to call it simply with call to command rec MeUser@MyMachine:~$ rec The problem is that now I'd like to ...
4
votes
1answer
73 views

terminal window displays 'my: command not found'

My terminal in Ubuntu 14.04 starts of with I don't know the reason for this cause my: command not found userID@userID-ubuntu:~$