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

learn more… | top users | synonyms (6)

3
votes
3answers
21 views

how to attach pen drive, and external HDD in ubuntu?

Could you please provide commands to: attach pen drive in Ubuntu system unmount command attach external HDD using mount command Thanks.
0
votes
1answer
26 views

Ubuntu Phone (14.10) Terminal Scroll up

i own a Smartphone with Ubuntu Touch 14.10 on it. I got an Error when installing something and the Error Message is that long that i can't see the first lines of it. Is there a possibility in the ...
-2
votes
1answer
23 views

How tosave terminal output to a folder?

am tiring to do a multi operation with a soft ware , then to How do I save each terminal output to a folder?
0
votes
2answers
16 views

How to use the python 2.7 shell in ubuntu terminal

I recently taught myself how to code in python. But i dont know how to use the inbuilt python 2.7 IDE. Can anybody help me with this also can you please give me a list of basic commands one needs to ...
1
vote
0answers
18 views

Simple way to delete a file and all its links (simultaneously)

I found a lot of questions on how to delete symlinks only, or delete symlinks based on their contents, but no one has asked how to do what I want to do. Take the following example file-l -> ...
0
votes
2answers
21 views

How to edit a file to add contents in Ubuntu

I am trying to run this code: /etc/apt/sources.list When this is entered into the terminal, it says Permission denied... I found it here, it is a guide for installing Tor. Any suggestion ?
0
votes
0answers
12 views

.bash_history of root account on Ubuntu Server 14.04

Last few hours I'm looking for a solution to enable saving of bash history on root account of Ubuntu Server 14.04. I'm not using root account, because I created my own, but some other users are still ...
0
votes
1answer
21 views

I cannot switch to root password

i have given '$' as one of the charectors in between the pasword for logging in my computer so when i have logged on to the terminal and wanted to shift to user it was giving su authentication ...
-1
votes
0answers
29 views

creating new column based on existing column

ALTER table results ADD result varchar(5); UPDATE results SET result=IF(credits=0,fail,pass); new column 'result' should display pass or fail.if credits are 0 it should display fail and for other ...
4
votes
1answer
126 views

How to run Telegram from Terminal

So I have telegram messenger on my Ubuntu and I'm trying to launch it from terminal and later on set it up as startup program - problem is I cannot find command to run it. telegram/Telegram don't ...
0
votes
1answer
15 views

How can i open sublime text editor with termial on ubuntu 14.04?

I want open sublime text editor via terminal, already i can it open via subl command, but problem is when i open editor then terminal loading like as below (sublime_text:7397): GLib-CRITICAL **: ...
0
votes
1answer
14 views

Setting action with xbindkeys: sh: 1: Bad substitution and wrong clipboard area

I'm trying to copy the song info (artist - title) to the clipboard in xbindkeys using shell command and the banshee --query-title and --query-artist commands. first I open the xbindkeys with $ ...
2
votes
0answers
57 views

How can I lock my Ubuntu phone using the terminal?

I have the terminal installed on my Meizu MX4 Ubuntu phone, is there a command I can use to lock the phone from the terminal? By "lock" I mean the same thing that the lock button on top of the phone ...
0
votes
0answers
8 views

Execute command automatically if sustained CPU usage

I use Ubuntu 14.04 EC2 instances on AWS for development, and they frequently (1-2 times per week) become unresponsive to SSH and I need to terminate them and create a new one - asking AWS console to ...
0
votes
2answers
44 views

Removing specific “word” from text file

I have .srt file with subtitles. However, my TV doesn't recognize signs like <i> </i> so it is just printed on the screen. I'm looking for a way to delete all the html markup.
-1
votes
0answers
8 views

how ti fix it please help me get kismet [on hold]

You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: squid3 : Depends: squid3-common (= 3.3.8-1ubuntu6.2) but 3.3.8-1ubuntu6.3 is to be ...
0
votes
0answers
18 views

Provider forbade routers

My dormitory's petty tyrant provider forbade using routers. We found the solution for Windows: 1) To make reg-file: Windows Registry Editor Version 5.00 ...
0
votes
0answers
36 views

Typing the command too long eats up the prompt when using the promptline theme

I am using the edkolev/promptline.vim theme(just installed it) for customizing the bash prompt. The biggest problem is that whenever I type long comments it replaces the prompt instead of continuing ...
0
votes
1answer
19 views

Rename all .htaccess files on server

On my localhost I have enabled htaccess evaluation in apache2.conf and now I keep getting 500 (Internal Server Error). I think I have some faulty .htaccess files that not being evaluated caused no ...
0
votes
1answer
19 views

sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700

I get error message always when i work with sudo command. It shows always sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700. A while ago i changed the permission of /var ...
0
votes
0answers
15 views

Problem connecting with a server only in one computer

I'm trying to connect to a server but y only obtain this: $ ssh user@server.direction ssh_exchange_identification: read: Connection reset by peer when I run the -vv option I get this $ ssh ...
0
votes
1answer
13 views

Terminal archive application with most types support [on hold]

I need terminal application that can extract (dont care about compress) almost any type of archive.
-1
votes
1answer
19 views

few lines insert in existing file via terminal? [duplicate]

i have file test.txt hi hello good luck i want in this test.txt hi hello good luck lms localhost how to add last two lines in terminal command ?
4
votes
4answers
338 views

Permanently store values when using the terminal

I have a few remote servers which I connect to through the terminal. The servers don't have a domain, only an IP address which is hard to remember when I got a few of them. Is there a way to ...
0
votes
2answers
30 views

list files or dirs starting with 'jre'

I need to list files and dirs with names starting with jre (small and capital letters are allowed). When I execute: ls | grep jre ...it greps just low capital letters and gives output with jre not ...
0
votes
1answer
13 views

Move folders modified a day prior 6.30 p.m

I need to move folders which are modified a day prior 6.30 p.m. For example. The folders which are modified in Day 1 before 6.30 p.m should be moved to another folder. Please help me. Regards, Syed
0
votes
0answers
29 views

awk add certain colum if two columns are similar

First at all I apologize, but I am a newbie in scripting, and I try to learn something. I have a file which looks like this: 1 A 84.54 47355 1281 1 A 80.16 47355 761 1 A 81.63 ...
0
votes
0answers
30 views

Problem with ssh connection

I can't connect to my vps via ssh-client on ubuntu and Putty(wine), but I still can connect to any other servers via ssh! Here is server-site tcp dump 18:58:39.886915 IP 192.168.255.253.45623 > ...
0
votes
1answer
20 views

keep track of multiple terminals from shell script

I am writing a quick start shell script to automatically set up my development environment for a current project. However, none of the commands in the shell script can be executed after my server ...
1
vote
2answers
38 views

Unable to match a specific number with “grep -E”

Here I'm trying to search numbers ranging from 0 to 255, but some random numbers get matched instead. Examples are: 1335.0.1.234 or 241.92.88.103 Bolded are the numbers which are matched. ...
0
votes
0answers
22 views

Can't open Terminal

I have Ubuntu 15.04 and I've changed my device's name from Settings > Details while the Terminal was running. I closed the terminal to see if the changes occurred (to see if the [usr]@[devicename] was ...
-1
votes
0answers
25 views

Start bash script from another script

I have two scripts /etc/init.d/script_1 and /opt/script_2. I need to call script_2 from script_1. In script_1 i write: /opt/script_2 And it works. But there is small option with script_2 - it must ...
2
votes
1answer
108 views

How to hide command line output

I understand that computers work faster if they don't have to output data to the user, so I'm wondering if there is a way to hide the printed lines in the Terminal, and eventually just print any ...
0
votes
1answer
36 views

read file names from files for command line

I want to run a program requiring comma-separated arrays of files as follows: program -input1 A.txt,B.txt,C.txt -input2 D.txt,E.txt,F.txt -out out.txt My bash attempt: I'm running command from a ...
0
votes
0answers
16 views

Blueman terminal commands

I'm having trouble with blueman conflicting with my wifi drivers and want to create a bash script that turns blueman off, restarts network-manager and then turns blueman on. The problem I'm running ...
1
vote
0answers
13 views

Split found files to run find -exec commands in parallel [duplicate]

I have a multi-level directory of jpegs that I want to optimise on a semi-regular basis (as things are added). The command I'm using jpegoptim is single-threaded so when I run the following, only one ...
0
votes
0answers
27 views

Uninstall software in linux [on hold]

I am new to linux and using it run CentOS. I want to know how to uninstall a software using make clean command.
2
votes
3answers
50 views

Netbeans desktop shortcut file not working in Unity launcher, Exec command works in term

I've been having trouble with the Netbeans desktop file generated by the netbeans install script. The file in question, as found in the /usr/share/applications folder, is very simple: [Desktop Entry] ...
-1
votes
0answers
15 views

Modify Value Tags in xml file by command shell script [on hold]

mapred.tasktracker.map.tasks.maximum 2 The maximum number of map tasks that will be run simultaneously by a task tracker. mapred.tasktracker.reduce.tasks.maximum 2 The maximum ...
2
votes
1answer
43 views

Start new gnome-terminal with several tabs and wait after command is run

I want to start a new gnome-terminal window with some command in multiple tabs. Based to this question: gnome-terminal --tab -t "FOO" -e "/bin/zsh -i -c 'cd $(pwd); zsh -i'" \ --tab -t ...
0
votes
2answers
34 views

Disable and Enable Internet without disconnecting wifi

I need a way to disable and then enable internet access via command line while still remaining connected to wifi.
0
votes
1answer
16 views

Unable to locate package libssl-dev

I got this error while try to implement the aes c program in openssl please help me to solve this problem : fatal error: openssl/aes.h: No such file or directory #include <openssl/aes.h>
0
votes
1answer
28 views

How do i install less css compiler?

I just installed less css compiler using npm. Now thelesscfile directory is /usr/local/bin/lessc . i'm not clear what i need to change in lessc file and how to understand that compiler has been ...
0
votes
1answer
23 views

sudo nautilus results in “cannot open display” error

$ gksudo nautilus Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused (nautilus:6072): Gtk-WARNING **: ...
1
vote
1answer
26 views

FIND command to find files and exclude one subdirectory

I want to find the *.mxf and *.MOV files with One Directory which are older than 14 daysbut i want to exclude one sub directory named as Secure within this search. here is my command , which i am ...
0
votes
2answers
36 views

Command to copy only folder with files

I have this types of folders folder A | -folder A | - 3files folder B | -folder B | - no files child folders A and B have same name of parent folder A or B. Parent ...
0
votes
0answers
16 views

Trying to compile/install gnuradio

john@john-Latitude-E6420:~$ sudo apt-get install gnuradio [sudo] password for john: Total Linux newbie. What is wanted for [sudo] password for john?
0
votes
0answers
21 views

Cron Convert FFMPEG Problem [closed]

FILE NAME - cron_convert.php chdir('/var/sentora/hostdata/zadmin/public_html/ctkdonline_com/cron/'); set_time_limit(0); include_once 'System.php'; include_once 'vendor/autoload.php'; $sys = ...
0
votes
1answer
28 views

Use tty without login every time

In the Ubuntu-based systems, from the desktop environment, it is possible to open several tabs from the terminal emulator without making a login every time: the user is already logged in for every tab ...
-3
votes
1answer
30 views

How to open a .py in terminal? [duplicate]

I'm trying to learn how to use Python (IDLE using Python 3.4) on my Ubuntu computer, but i dont know how to open/run a .py file from the terminal from the desktop.