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

learn more… | top users | synonyms (6)

1
vote
1answer
33 views

do a reverse name lookup to compare the IP to localhost

i want make server ip mapping to localhost? should i vim /etc/hosts 127.0.0.1 localhost ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.51.101.35 iZ25kpavw8zZ ...
0
votes
2answers
127 views

Linux commands to use Windows bootloader instead of Grub [duplicate]

So, I can't boot into windows at the moment, and in order to fix this problem I need to access Advanced Options which I can do by pressing F8 in the windows boot loader. However, I have grub currently ...
2
votes
1answer
94 views

Opening a terminal by default when USB is inserted

By default, when removable media is inserted Ubuntu will open Nautilus in the mount directory. I disabled this feature, but was wondering if I could configure Gnome to open a terminal in the mount ...
0
votes
1answer
153 views

is there a command to turn on keyboard lights?

I just updated the BIOS of my friend's Dell Latitude E6420 (from A08 to A22) and found out that the keyboard has a back light! There is a FN+Key which toggles thought the scales of brightness, maybe ...
0
votes
0answers
49 views

How to display total bytes total files directories and scripts using the ls command

I'm trying to us ls to count all bytes in my directory, all files, all directories, and all scripts, but having it at the bottom of the ls output. So it would look like a typical ls -l command but ...
1
vote
1answer
61 views

PowerShell “get-command *services*” equivalent with Terminal?

I’m new to the Terminal and would like to know if there’s a way to find certain command names within the terminal instead of trying to look them up online and through various sites. I’m enjoying the -...
2
votes
0answers
27 views

Update impossible. Blocks at renewing MySQL pack. Cant remove MySQL

I try to update MySQL but the update gets stuck at: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. I do the sudo dpkg thing and it stops at: ...
0
votes
1answer
66 views

I cant find terminal?

So I am new to ubuntu,and I was trying many things last night and I dont know what I did but there is no terminal anymore. I pres ctrl+alt+T but it opens a program name Xterm. I don't know if this is ...
0
votes
0answers
82 views

Install xgrafix for xoopic on Ubuntu 12.04: Cannot establish cnnnection to the Xserver

After installing the XGrafix, I typed the command: $ ./ctest/t but I got this error message is: XGrafix: cannot establish connection to the Xserver Did anyone have this problem? Or, XGrafix wasn'...
0
votes
1answer
154 views

Find-move-replace files from /folder1 to /folder1/sub-folders

Situation: folder1 have about 2000 files, folder2 have over 300 sub-folders and each sub-folder have 500 files. What I'm asking is to move/replace files from /folder1 to /folder2/sub-folders, but only ...
0
votes
0answers
28 views

Unable to access a file

Trying to run a command line: java -jar banjo.jar settingsFile=data/release2.0/static/static.settings.txt When I do I get a message: Error: Unable to access jarfile banjo.jar I am in the ...
1
vote
0answers
97 views

Why can't I switch back to the desktop after using a TTY?

I have pressed Ctrl+Alt+F1 and then I have pressed Ctrl+Alt+F7, but it doesn't come back to the graphical interface. What should I do?
2
votes
1answer
52 views

Make Espeak read the words from picture on ubuntu [closed]

I m working on a project that helps visually impaired people to listen to the writings on the printed paper. I have dealed with the part of converting printed text picture into pdf file with digital ...
0
votes
0answers
17 views

How to edit mp3 artists property in the terminal [duplicate]

So I know I can edit the mp3 song properties in rhythmbox. However, it very time consuming to do this via the GTK+ interface. So I was hoping there was a way to do it in the terminal. I look at the ...
3
votes
1answer
112 views

Can't highlight in terminal with mouse

I'm on a fresh install of 15.10 and for some reason, I can't highlight text in the terminal to copy. It's really weird and I've never run into this before. The only thing a little different about my ...
3
votes
2answers
523 views

Fastest way to read help on not installed program (I'm Feeling Lucky)

What is the fastest way to lookup info on a program that is not currently installed? Today I needed Ubuntu to remind me about some event, and I though that Ubuntu could be as smart as Google's I'm ...
0
votes
0answers
10 views

Create and run alias file for command line [duplicate]

I have created a file "~/.aliases" file with the content: # git stuff alias ga="git add" alias gaa="git add ." in "~/.bashrc" at the top I have this code. # ~/.bashrc: executed by bash(1) for non-...
0
votes
1answer
62 views

A cli calculator who recognize wrong math syntax?

I'm looking for a way to do quick calculations in the terminal (using utilities available in Ubuntu minimal) and get accurate fail errors when the math syntax is incorrect, eg: cli-calculator "foo+bar"...
0
votes
2answers
340 views

Change root name in ubuntu [duplicate]

how're you doing? I am somewhat new to ubuntu and finding problem changing the root user name. My terminal displays priyank@Alex right now. I changed the second name to Alex using hostname and hosts. ...
0
votes
2answers
355 views

convert animated gifs to sprite sheets

I have a shell scripting request, I haven’t spent much time figuring it out myself yet, but I want to try and convert animated gifs into sprite sheets for use in SDL game development. I know how to ...
0
votes
1answer
183 views

Concatenate multiple commands and write them in one line to a log file

I'm really new to Linux/Ubuntu. I want to log multiple information out of a bash script to a log file, for example the systems current timestamp, some text, and the systems hostname. I tried something ...
0
votes
1answer
40 views

Can not boot ubuntu and other linuxes

I wanted to install Linux on my old Laptop, but whenever I try to boot it, it gets stuck on booting "command line" and looping in it. It is too fast to get any text but last line is "[ OK ] Reached ...
0
votes
1answer
254 views

Screen not refreshing after Nvidia driver install on Ubuntu 12.04

After installation of new Nvidia driver for Quadro 400 on my PC, refreshing is not proper any more, especially with the terminal. Even after trying a few solutions such as suggested in the post: Gnome-...
0
votes
2answers
58 views

I am unable to read while loop in shell script

So i wrote this program to reverse the arguments..but the problem was while and expr command was not read by shell script.. Here is the program #!/bin/sh If test $# -eq 0 then echo "not enough ...
0
votes
1answer
470 views

./xampp-linux-x64-5.6.14-0-installer.run command not found

Hi all i'm trying to install xampp on my ubuntu 15.04 i've downloaded the .run file and i've collocated it on my Desktop with terminal for first i've moved to the desktop with: cd Desktop then i'...
1
vote
1answer
157 views

Unable to change pallette settings in dconf gedit terminal

I followed the thread to fix the gedit white terminal issue. How to change Gedit embeded terminal plugin colors? I'm stuck because I cannot change or delete the pallette setting in dconf. This is ...
7
votes
1answer
671 views

How do I use scp backwards?

I want to do the following: scp root@server.ip.adress:/root/file.txt ~/homecomputer/directory Instead of taking a file from the server though, I would like to send a file. How do I do this?
17
votes
2answers
863 views

How to copy an entire command line to my clipboard, without the mouse?

Imagine that I have this line in my terminal: youtube-dl --get-thumbnail --extract-audio --audio-format mp3 https://www.youtube.com/watch?v= After testing it, I would like to copy this line above ...
2
votes
1answer
111 views

Python os.getlogin() vs BASH : who

I have formed 3 sessions with user accounts and I got no problem with Unix: who command but why I am unable to get correct response with python : getoslogin() function. Please find attached image for ...
1
vote
0answers
27 views

JDBC Driver Not in CLASSPATH eroor

I have try to running apirior alogorithm in IdeaJ IDE. Where the following error occur Trying to add database driver (JDBC): Driver - Error, not in CLASSPATH? How do I overcome this error. I have ...
6
votes
2answers
203 views

How to sort audio files according to their cut-off frequency (real bitrate) in kHz?

I have some music collection and I want to sort/filter them easily according to their cut-off frequency (real bitrate, usually in kHz. I used to use Spek for showing me this information, but Spek ...
0
votes
0answers
237 views

Installing Wofram Mathematica 10.3 on Ubuntu 14.04 - error code 126

I am trying to install Mathematica 10.3.0 on Ubuntu 14.04 in a command line. Mathematica came as a shell script. Upon running it, I got the following output: sudo bash Mathematica_10.3.0_LINUX.sh ...
1
vote
1answer
174 views

How To Create A Startup Script To Run Both Grunt Watch and XAMPP

I'm new to Linux and Ubuntu and I'm a web developer. I created this small script to run Grunt watch and XAMPP at the same time. #!/bin/bash sudo /opt/lampp/lampp start cd /home/mohammed/Dropbox/...
2
votes
1answer
70 views

Create folder loop function doesn't work

I have created a function in a .sh file that creates directories in a loop with 3 parameters int: start, end and folder name name But I am getting the following error: Syntax error: "(" unexpected ...
2
votes
3answers
125 views

Change names of incrementally ordered range of files

Say I have a range of files named: "blah-10-blah", "blah-11-blah" etc...up to "blah-30-blah". I would like to change the names to "blah-20-blah", "blah-21-blah" etc...up to "blah-40-blah". Is there ...
1
vote
0answers
61 views

Terminal colors don't show

So, have the following in my ~/.bashrc to display my git branch if one exists (works). When I save the file and run source ~/.bashrc, the colors don't show up. All I have is a white on black terminal ...
5
votes
2answers
3k views

Is Linux getting less or more secure? [closed]

The famous so-called virus-and-hacker-free Mac is a thing of the past: As it gets more popular it gets more vulnerabilities. Will Linux be the same at some point in time? Is it getting less of more ...
1
vote
1answer
72 views

Advanced Ping Script [closed]

I want to have a little script which do a ping to 8.8.8.8 every 2 seconds and put only out the time. It should also put a "#" between every time. Like this: 25.5 # 25.4 # and so on... Finally i ...
0
votes
1answer
196 views

How to install iptables in Ubuntu

I tried to install the Linux firewall iptable but it did not work I tried sudo apt-get install iptable and that did not work.
2
votes
2answers
424 views

ls vs. ls -C difference

commands ls and ls -C seem to produce the same results - display by columns. Is there any difference?
3
votes
1answer
41 views

Determining non-base install applications?

I'm typically booted to Lubuntu. As I find myself using AskUbuntu more and more, I find myself further and further from the stock installation. I prefer to give complete answers. I do not want to tell ...
1
vote
2answers
41 views

ls -d not doing what I'm told it should

Ubuntu 14.04 LTS Straight machine, no dual boot or anything. I am in ~/scratch I want a list of directories only. tree -dL 1 Got it! man ls says: -d List directories only instead of their ...
2
votes
1answer
50 views

Bash file for sending a signal to a process

I need to write a bash program which will take the name of a program and a name of a signal as arguments and then do some things. If the name of the signal is not given, the default signal should be ...
1
vote
0answers
58 views

Can't set the openVPN without dns leaks

I found that I have leaks when I set my VPN through Terminal. I found couple thread and tried to use this method - How can you test for a DNS leak for an OpenVPN provider? I made everything, when I ...
2
votes
1answer
62 views

Bash Command Arguments ${…}

I noticed this type of command argument in a bash script: node ${debug?--nocrankshaft --nolazy --nodead_code_elimination --debug-brk=15454} app.js I am wondering what ${....} means? How is it ...
-1
votes
1answer
231 views

How to get konsole work on gns3

i am interested in making my devices display in tabs when working on GN3. i made some research and found out that konsole can do that. i installed it. i have gone to preferences => edit => set KDE ...
0
votes
1answer
31 views

Recognize when ssh session closed

I was trying to change my terminal profile when connecting with ssh to a remote computer. This works well with a certain number of local profiles and xdotool key Alt+t p Down Return. Now the question ...
1
vote
1answer
70 views

How to: Command line directory duplication?

I use terminal/the command line on a daily basis for front end web development. As an example: Today, from the command-line I was trying duplicate a project to make a responsive web page design ...
3
votes
4answers
484 views

Is there a way to read characters backwards from the end of a file in the terminal?

For instance, less allows you to read line by line, starting from the beginning. Is there a similar utility or line that could be run in the terminal that could display a file backward character by ...
6
votes
2answers
115 views

Where are commands of the netinstall mini.iso documented?

I've tried to install a new system with the help of a mini.iso and ran into wireless configuration issues. I found it pretty weird that the mini.iso mostly seems to be working fine although despite ...