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

learn more… | top users | synonyms (6)

0
votes
1answer
26 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.
31
votes
4answers
67k views

How do I save terminal output to a file?

How do I save the output of a command to a file? Is there a way without using any software? I would like to know how.
4
votes
4answers
308 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
0answers
7 views

how ti fix it please help me get kismet

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 ...
100
votes
10answers
198k views

How to check Internet Speed via Terminal?

Instead of going to sites like speedtest.net, or others, I want to check my current Internet speed from the terminal on Ubuntu. How can I do it?
0
votes
0answers
16 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
16 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
15 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 ...
63
votes
5answers
40k views

Is there a hotkey to switch between tabs in the default terminal app?

Is there a hotkey to switch between tabs in Ubuntu's native terminal app? I'm using the netbook version of ubuntu.
32
votes
2answers
343k views

How to copy files via terminal?

I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do: Examples: I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy ...
0
votes
1answer
14 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
1answer
38 views

Confused about how to compile modsecurity module for apache in Ubuntu 14

After I followed the instructions in Building Custom ModSecurity Modules section in modsecurity dev guide in order to compile mod_tfn_reverse.c using the command apxs -ca mod_tfn_reverse.c, I'm still ...
0
votes
0answers
9 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
11 views

Terminal archive application with most types support

I need terminal application that can extract (dont care about compress) almost any type of archive.
0
votes
1answer
17 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 ?
0
votes
1answer
145 views

Why is nodemon unresponsive to any commands in terminal?

I'm trying to use nodemon instead of nodejs, but it doesn't want to work. There are no errors. The install goes smoothly and also returns no errors. If I type in ANY nodemon commands such as nodemon ...
2
votes
3answers
20k views

Failed to get size of gamma for output default when trying to add new screen resolution

I'm trying to adjust resolution on my new MSI GT70 2OC. In settings, only one resolution is available: 1920x1080. This is fine, except that I need to decrease the resolution and make it more ...
0
votes
2answers
28 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
25 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 ...
1
vote
1answer
90 views

Why does 'sudo java' change the user home directory to /root?

I have a program that needs to access a file in my home directory. Ubuntu will not allow this to happen due to the program not having root privileges. At first I ran this java command (which ...
0
votes
0answers
28 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 > ...
2
votes
2answers
11k views

How to install Netbeans 8.0.2 on ubuntu 14.x

I have netbeans downloaded from the netbeans.org site. This is the file name → netbeans-8.0.2-linux.sh I dont know how to install it on ubuntu 14.10 Is there any one can help me install netbeans on ...
0
votes
1answer
17 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 ...
0
votes
3answers
645 views

Which command should I use to open an MP3 file?

Which command should I use to open an MP3 file? For example, "abcd.mp3" hamza@ubuntu:/media/hamza/Elements/mmc$ cd abcd.mp3 bash: cd: abcd.mp3: Not a directory
21
votes
4answers
14k views

How to show ascii art at the top of the terminal when it's opened?

As you can see on this screeshot of Mik's Guake he have a statup message of ascii art when he opens it, and that's what I'd like to do, can someone help me?
1
vote
2answers
35 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
vote
5answers
60 views

Terminal asks for password but does not let me enter anything (15.04)

Whenever I try to open steam or some other programs, it opens the terminal and asks for my password, but when I try to enter it, it does not type anything and pressing enter just says sorry, try ...
2
votes
1answer
106 views
+250

Subsetting a font from the command line and turning it into a webfont

I have a few web projects that link into various icon fonts (like FontAwesome and Glyphicons). These are great fonts but they include a lot of glyphs that I never use. ~65KB is a relatively big ...
0
votes
0answers
24 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 ...
3
votes
5answers
5k views

How to set CLI flags for Google Chrome?

Where can I set CLI flags for Google Chrome on Unity?
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 ...
2
votes
1answer
106 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
0answers
14 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 ...
2
votes
1answer
38 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 ...
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 ...
1
vote
3answers
2k views

Vim cannot find syntax.vim

Recently, I needed to build Vim from source to use a plugin that required Lua interpreting. This worked fine on my laptop, but my tower computer is having some issues. Any time I run Vim, I recieve ...
2
votes
3answers
45 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] ...
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.
0
votes
2answers
460 views

How can I get Subliminal to work and then integrate it with a file manager?

I have downloaded Subliminal which is a program that downloads movie subtitles.But there are several problems: (1) when I test it at the console with a movie that I know has an English subtitle, I ...
23
votes
4answers
22k views

How to know my GTK version?

I want to know my GTK version (i am working on Ubuntu 11.10) using a command line or any thing
42
votes
14answers
127k views

How can I create a select menu in a shell script?

I'm creating a simple bash script and I want to create a select menu in it, like this: ./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to ...
6
votes
7answers
913 views

Problem with spaces in file names

I want to do something repeatedly on a list of files. The files in questions have spaces in their names: david@david: ls -l total 32 -rw-rw-r-- 1 david david 13 Mai 8 11:55 haha -rw-rw-r-- 1 david ...
0
votes
2answers
32 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.
-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
1k views

Disable all Unity keyboard shortcuts using the command line

I would like to know how I can disable ALL keyboard shortcuts via the terminal. I know you can disable them by going to: system settings>keyboard>shortcuts but I want to disable them via terminal. ...
0
votes
1answer
15 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>
103
votes
5answers
88k views

How can I get octal file permissions from command line?

There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
0
votes
1answer
27 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 ...