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

learn more… | top users | synonyms (6)

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
47 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
51 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,*....
1
vote
4answers
57 views

what is the meaning of FOUND in grep FOUND

I came across this command sudo clamscan -v -r /folder/to/scan/ | grep FOUND >> /path/to/save/report/file.txt while studying clam ( an open source antivirus engine). I am unable to understand ...
5
votes
2answers
373 views

How to copy an entire directory except one file in each sub-directory via terminal? [duplicate]

I have a folder named 'Java' which has 20 sub folders ('Day-01' to 'Day-20'). Each sub folder has one or two '.wav' files along with few other files. I want to copy the entire directory except the '....
3
votes
2answers
77 views

Display all the folders which do not have any sub directory [duplicate]

How do I display all the folders which do not have any sub directory using the terminal?
0
votes
1answer
37 views

Terminal not running after change command [duplicate]

I tried to costumize my terminal from Edit>Profile Prefences>Title and Command. I check the Run a custom command instead of my shell and i think i write wrong command so the terminal won't run anymore....
0
votes
0answers
23 views

Terminal is hibernating when pc is idle

i have this annoying thing where my terminal stops doing anything when my pc is idle for a certain amount of time, the way to make continue is by pressing buttons or moving my mouse. Is there anything ...
0
votes
1answer
16 views

having trouble installing canopy 1.7.2 on my ubutu 12.04 amd64 computer

I am having trouble installing the canopy installer 1.7.2 on my Ubuntu 12.04 amd64 computer. I have downloaded the software in the "downloads" folder but I get the following error: $ bash canopy-1.7....
0
votes
1answer
75 views

Create hotspot using CLI only - ubuntu 14.04 [duplicate]

I saw many howto's for creating a hotspot in Ubuntu 14.04 (in AP mode) using system settings. They are perfect. How do I create a hotspot using only command line however? I tried messing around ...
2
votes
1answer
75 views

Ubuntu Terminal - gcc: error: unrecognized command line option ‘--showme:link’

I am not trying to install anything. But the error message gcc: error: unrecognized command line option ‘--showme:link’ pops up as the first line in my terminal whenever I launch it. The problem ...
0
votes
0answers
33 views

Why my ssh command operates on my local machine?

I installed three Ubuntu 16.04 on my VMWare virtual machine software,they are master,slave1,slave2. I have installed ssh software on the three machines, and I Generated RSA Keys according to the ...
0
votes
0answers
61 views

Ubuntu 16.04 - Wireless Mouse Cursor freezes unexpectedly

The mouse was working fine earlier… Here is what I tried to do: sudo su -> rmmod usbhid -> modprobe usbhid in a ssh connection Unplugging the mouse Moving the mouse to another port Restarting the ...
0
votes
0answers
29 views

Trouble running binary file [duplicate]

I just want to run a binary file, but when i try to do his using my terminal,its acting weird and i can't figure out what's the problem. rohan@rohan:~$ cd Desktop/ rohan@rohan:~/Desktop$ ls chal ...
2
votes
0answers
56 views

How do I add commands to the Ubuntu touch terminal app

When you first run the terminal app in Ubuntu touch you get this menu above the keyboard where you can choose between nano, fns, cmd, ctr, scr. Can I add my own? Like vi commands or screen commands. ...
1
vote
1answer
43 views

How to delete all .class and .csv.gz files in the folder and all the subdirectories in SVN [duplicate]

I'm trying to delete all .class and .csv.gz files from my svn directory and all subdirectories. Can anyone tell me how to do it automatically with a command ? I have RabbitSVN installed on my Ubuntu. ...
2
votes
1answer
42 views

Running “ubuntu-support-status” throws an exception

I was reading on this page that running ubuntu-support-status Will "...print the exact status of your system." However, if I run that command, it crashes and throws an exception. Here's the ...
0
votes
1answer
53 views

How do I keep the cursor in the middle of the console?

As we know when the command line hits the bottom of the terminal, the input cursor stays at the bottom of the terminal, which makes it a little uncomfortable to see. So I want to make the line with ...
0
votes
0answers
35 views

Set “Notify me of a new Ubuntu version” on command line

How can I switch on the option to be notified for a new Ubuntu version, which you usually find in Dash --> System Settings --> Software & Updates --> Updates --> Notify me of a new Ubuntu ...
-1
votes
1answer
37 views

How to get the IP address from the nova list

From Openstack, i need output like hostname, status and ip address only but i am getting hostname, status and id=ipaddress nova list | grep Hostname1 | awk '{print $4,$6,$12}' Output : ...
-1
votes
0answers
17 views

The regular install for snphylo uses an old version of PHYlip so i seperately instally the 3.96 versions

I am installing phylip as part of snphylo and i cannot get this script to run. When i cat src it says that there is no such file or directory... is there any way around this where i can still get ...
6
votes
4answers
347 views

How to add the text before the line in whole file?

I have list of domain in text file and I need to add 127.0.0.1 ip before the line in whole file. Example as below: domain.txt .... abc.com ... I want to generate HOSTS file like ... 127.0.0.1 abc....
0
votes
0answers
26 views

Hash script to audit filesystem from /bin,/sbin,/usr/bin,/usr/sbin/ [duplicate]

I trying to do a script to audit files from many directories with md5sum sha256sum and sha512sum. Here is what I have now: #! /bin/bash clear hashone=md5sum hashtwo=sha256sum hashthree=...
0
votes
1answer
25 views

E:Type 'sudo' is not known on line 53 in source list [duplicate]

I have done some looking around for a solution. However, I have come to the conclusion that the solution to my problem is just not on the internet. I am unable to update Ubuntu and download apps from ...
2
votes
3answers
72 views

Find all python files in linux file system [duplicate]

How can I search my entire Linux filesystem for all python files (files with extension .py)? I know I can do find -name filename but how can I do it for file type?
2
votes
1answer
73 views

How can I convert these commands to work in Ubuntu?

I was just following a guide for Virtual Box. I tested the guide in Windows, since that's what it was written for. But now I want to use the same guide for Ubuntu. VB is the same on both platforms, ...
5
votes
1answer
83 views

How to close application from terminal same way as exiting it properly

Usually when running application in graphical environment, when I want to close it I click X in the top left corner of the window or go to File > Close. I would like to sometimes close these ...
0
votes
2answers
38 views

over-coming interactive command in a script [closed]

I'm trying to have a script to create containers on proxmox, & I want user to enter his password before proceeding to the creation of container, so I can push it to the main command. the command ...
-1
votes
0answers
26 views

I have problems with installing programs [duplicate]

I have problems with installing programs through the terminal. After typing a command i can not type the password. Nothing happens.
0
votes
1answer
34 views

When adding a repository can I add an auto enter command in the terminal?

When I add a repository I would like to add a command so that I do not have to press enter on my keyboard. Just like when you add -y to a command when installing a program. Is that possible? Cheers ...
-1
votes
1answer
55 views

Error while compiling a file in ubuntu [closed]

odroid@odroid:~/Modules$ make make -C /usr/src/linux-headers-3.10.96-150 SUBDIRS=/home/odroid/Modules modules make[1]: Entering directory `/usr/src/linux-headers-3.10.96-150' CC [M] /home/odroid/...
-1
votes
0answers
33 views

backup to s3 bucket on shutdown script not working in ubuntu 14.04

I edited shutdown-hook.conf via vi /etc/init.d/shutdown-hook.conf The content is description "run at shutdown" start on starting rc task exec /bin/bash /etc/my_service/uploads3.sh Then i changed ...
-1
votes
0answers
18 views

Error running make command on Odroid C1 board [duplicate]

I'm getting this error while running make on Ubuntu. I'm using a "Odroid C1" board. The error seems to be due to the mach folder not containing memory.h. odroid@odroid:~/Modules$ make make -C /usr/...
0
votes
2answers
46 views

Ubuntu - how to copy files and folders which contain special characters

I have a filesystem mounted read only which has many files with special characters like &, ( and ". I would like to copy recursively all files and folders to an external exFat volume using cp -R ...
4
votes
3answers
250 views

How to delete all files in particular folder present in current directory sub-folders excluding a certain file?

There are lots of posts where people asking how to delete files except ones, but my question is more specific. There are several folders named migrations in current directory's sub-folders, which ...
-3
votes
1answer
88 views

How to close a text file with terminal [closed]

I have a text file opened, what command do i need to type in the terminal to close the file ? I tried to kill the process but i can get the processes ID by using command ps -A | grep <app-name>...
1
vote
1answer
40 views

Terminal-Browser with Flash

I want to know if it's possible to enter a Flash site from the terminal. I'm playing a web-game based on Flash, so I want to make my server consume as low CPU as possible. I saw that I can do it, but ...
0
votes
2answers
134 views

sudo not working at all

this is the error message i get: ubuntu@tegra-ubuntu:/$ sudo apt-get update sudo: unable to stat /etc/sudoers: No such file or directory sudo: no valid sudoers sources found, quitting sudo: unable to ...
0
votes
1answer
37 views

Reloading .bashrc after setting variables — shell script

I have a simple script that sets up a CVS repository (and other things) for work. The script has a function which should set up the repository, but it does not properly reload .bashrc. The code is as ...
3
votes
1answer
99 views

How to create a new partition in Ubuntu 14.04? [duplicate]

I'm currently using Ubuntu 14.04. It's showing the whole hard drive as single partition. I need to split the drive into different partitions. How can I accomplish this, preferably via the terminal?
-4
votes
1answer
72 views

permission denied target 'xyz' is not a directory [closed]

Please help with this question : Create a new user called hos with password 123. In the home directory of this user, create a file called xyz, containing a list of all files and directories from /etc ...
3
votes
1answer
211 views

How to run a program in background and also using && to execute another command

I want to run my node app in background and curl simultaneously using &&. I tried the following but they don't work. node app.js &;curl localhost node app.js & && curl ...
0
votes
1answer
72 views

strange command prompt error

Whenever I have two command prompts open I always get this script coming up after I execute the commands. Just to clarify the commands execute and output correctly but after the out put before the ...
1
vote
2answers
39 views

Add the next command line after validating the first command [duplicate]

Is it possible to enter the next command line like this: command1 ; command2; After validating command1? For example I do: make And it takes a long time! I want to say: after this command: do ....
0
votes
1answer
57 views

How do I execute terminal commands by clicking an icon? [duplicate]

I'm trying to set up my sister's laptop with Ubuntu 14.04 running the LDXE shell. The only issue is, on boot, the wifi is disabled by default and I can't seem to reactivate it except with these ...
0
votes
3answers
304 views

Can't install Google Chrome on Ubuntu 16.04 [duplicate]

I am running Ubuntu 16.04 off a USB stick. I have tried to install Chrome via the Software Center and it says installing and then goes back to "install" a second later. I have also tried via Terminal ...