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

learn more… | top users | synonyms (6)

0
votes
0answers
29 views

Manually connecting to WiFI network using iw results in disconnect

I want to manually connect to a Wifi network using either iw or iwconfig. I have tried both. My laptop is running Ubuntu 14.04 with network manager normally managing my wired and wireless networks. I ...
1
vote
0answers
31 views

Convert pdf to monochrome via inkscape command line

I have a 65-page PDF file that has text in a dark grey. (Actual text, not a picture/image of text.) Printing on my B/W printer, the text gets all blurry, because the printer is trying to make it less ...
0
votes
1answer
24 views

what do the columns in 'ls -l' mean? [duplicate]

I am looking specifically for the second column and how to change it. I know it has something to do with owners or groups but I cannot find a direct definition of what it means
4
votes
3answers
172 views

Size of device file ( missing in ls -l output )

When I try to print the device file output shows binary data in hexadecimal format. But upon doing a ls -l /dev/sda I get: brw-rw---- 1 root disk 8, 0 Jan 29 12:29 /dev/sda I don't ...
1
vote
0answers
20 views

Why do I get two RandR errors each time I run the xrandr commands?

I'm in the process of creating an xrandr GUI frontend, but I keep running into randr errors. When I run the xrandr --newmode command, I get a BadName error. Running the xrandr --addmode command after ...
7
votes
5answers
347 views

I need help with Grep to start at a section

I have some text files that I want to grep a section of code from. The goal I am trying to achieve is to start the view at a certain line & then be able to read anything below it. For example. In ...
0
votes
2answers
34 views

Add android-studio/bin/ to PATH environmental variable

Recently I installed Android Studio. Now I want to add android-studio/bin/ persistently to PATH environmental variable as Session-wide environment variables and not as System-wide environment ...
1
vote
1answer
27 views

How to redraw terminal window after wall command displays message

I have a script that will send wall notification to all open terminal sessions when battery gets bellow certain percentage,and will continue doing so every minute until power source is plugged in. ...
0
votes
0answers
14 views

How can I run a sudo command without entering a password? [duplicate]

I created a script that I wanted the system (Ubuntu 15.04) to run immediately after I log in, so I add the scripts to the "Startup Applications preference". However, the the script has some command ...
1
vote
1answer
19 views

Keyboard shortcut for ruby script

I have some problem here when I'm trying to make a keyboard shortcut for my ruby script. So the first step I've do for it was to make a alias and add that command for alias on file .bashrc alias ...
3
votes
1answer
29 views

problems with man pages

after trying to install man pages in italian language I get this error: man ls man: can't resolve /usr/share/man/man1/ls.1.gz: No such file or directory No manual entry for ls See 'man 7 ...
0
votes
0answers
26 views

make command ( gnuradio)

I'm using gnuradio , i'd tried to build a new block with c++ , after i finished my cpp file i wrote commands to build and install this block to work properly, mkdir build cd build cmake .. till ...
1
vote
2answers
44 views

Command on ubuntu

I'm using gnuradio , i'd tried to build a new block with c++ , after i finished my cpp file i wrote commands to build and install this block to work properly, mkdir build cd build cmake .. till ...
3
votes
1answer
34 views

Server, Remote Login, SSH?

Two Things. I'm trying to setup multiple server applications on Ubuntu With Terminal using SSH. I need to be able to use some form of login to the applications VNC, (having trouble with) SSH GREAT, ...
0
votes
0answers
13 views

Running VIsual Studio Code in Ubuntu gives strange error

I followed the steps to install Visual Studio Code from the answer here Download Visual Studio Code for Linux Extract it: unzip VSCode-linux-x64.zip -d ~/path/to/VSCode Run the Code executable to ...
-1
votes
2answers
57 views

Can't install anything with Terminal commands

Whenever I attempt to install anything through terminal commands it tells me, Sorry, user Matthew is not allowed to execute '/usr/bin/apt-get install .... I've already used the main account and ...
2
votes
1answer
27 views

Shell script needs to be run twice to work as expected

I have the following shell script: #!/bin/sh # 1. Kill the process along with the screen /usr/bin/pkill -f reportPrintingServer.jar # 2. Start the printing server again. /usr/bin/screen -S proRps ...
0
votes
1answer
33 views

tor command is not starting Tor Browser

I wanted to install Tor on my new Ubuntu (14.04) install. I followed all the instructions and tried to start tor. It starts correctly if I navigate to Tor's directory and run: ...
1
vote
1answer
33 views

How to send KDE5 desktop notification from a bash script?

I've tried a number of options, none of them worked: notify-send 'text' kdialog --passivepopup 'text' 5 qdbus org.kde.knotify /Notify event "event" 'app' "(" ")" 'title' 'text' 'pixmap' '' 5 0
0
votes
0answers
27 views

install tp-link drivers (from their site) [closed]

Just discovered that tp-link made a driver for linux. I cant tell if it would be better that Pvaret's one, but it should, doesnt it? Here is the download page (third option): ...
-3
votes
2answers
52 views

Putty SSH client question

I'm trying to select the list of commands generated as explained here, but I can't copy all the commands neither by clicking with the mouse's right button nor by hitting Ctrl + C. How can I copy the ...
1
vote
0answers
19 views

How can I modify “cp -ru” to remove files in destination that no longer exist in source?

I have a directory with many subdirectories and several million files. Total size around 15GB. I have a brief window (preferably around 30 seconds) to mirror changes to this directory to a second ...
0
votes
1answer
36 views

Putty SSH client command history? [duplicate]

I connect to my server via Putty SSH client. With the key ↑ I see previous entered commands, one by one. I just wondering is there a some command, which show all previous entered commands out of a ...
3
votes
2answers
42 views

set nginx server_name variable from command

root@username:/home/dokku/appname# cat nginx.conf server { listen [::]:80; listen 80; server_name appname.wrongname.co.uk ; access_log /var/log/nginx/appname-access.log; ...
1
vote
2answers
36 views

How to know what options each command has?

I've been using linux for quite some time now and I have a question burning in my head. I'll use the mount command as an example. When you see the manpages of mount it says that you use the command ...
1
vote
0answers
24 views

replicable apt-get install command

I'm provisioning an Ubuntu server with a shell script, for definition a provisioning script should be replicable and idempotent (every time I execute the command it should always act the same). Thus I ...
5
votes
1answer
59 views

Serialise shell commands

I'm looking for a way to "stack" commands from the terminal prompt so that only one at the time is executed: First enter a command, press enter, execution starts, back to shell (like &) I can ...
-4
votes
0answers
20 views

Command Line Crash Course [duplicate]

Does anyone know a good interactive command line class or videos I can take/watch? I need to learn Ubuntu commands well enough to teach them in 2 months. Thanks!
0
votes
0answers
14 views

How to launch the FCEUX emulator that I just manually installed?

These are the steps that i did to install the latest version of FCEUX emulator (followed exactly from this forum - http://ubuntuforums.org/showthread.php?t=971455) :- Install necessary dependencies ...
0
votes
0answers
13 views

How to connect to a VPN through EC2 Ubuntu 14.04 command line?

I'm running an EC2 Ubuntu 14.04 instance and I want to connect to my PureVPN service. There are guides but they are for GUI versions of Ubuntu but not the command line.
1
vote
1answer
11 views

Cant connect to my VPS from Ubuntu Terminal

im try connect to my server using ubuntu terminal ssh -p 2222 -i mypublickey.ppk username@ip then its ask "Enter passphrase for key 'mypublickey.ppk':" Im entering my password but its always wrong ...
14
votes
4answers
299 views

How can I limit or restrict access to an application?

My son received a new laptop this past christmas, primarily for usage at his new school... And now that he has his own laptop, he's stoked to have Steam installed. But the wife wants me to remove ...
1
vote
0answers
17 views

Access network shared printer from wine command prompt

I have connect a shared printer in my ubuntu desktop and I have installed wine 1.6. I ran a vb application in wine and I want to print the output txt file of the vb application. Printer is shared in ...
3
votes
1answer
32 views

How to minimize all windows from command line in LXDE?

I need to minimize all windows from command line, I have heard about wmctrl -k on but I think it will only work for gnome, is there any possibility of doing this?
1
vote
1answer
27 views

Run C++ program like a command from the terminal [duplicate]

Hi, I've created a small program in C++ I would like to run like a command from the terminal. With that I mean that I can open the program from and in the terminal (as it is a console application) ...
1
vote
0answers
9 views

Duplicate User login? [duplicate]

I am testing my new (dual boot) Ubuntu install. When playing with basic terminal commands I noticed that i was logged in (or something to that effect) twice! Here are my commands and the terminal ...
0
votes
1answer
20 views

Find all occurrences of a word in a file and add a string to them?

I have a file containing my source code for a project I'm working on at the moment. I have the word resolution scattered over the file, and want to prefix it with self. --snippet-- resolution = ...
0
votes
0answers
13 views

I can't get the colorshemes to work in neovim

I used neovim in archlinux and colors were working fine, I used rxvt-unicode and zsh. I try to do the same in ubuntu but the colors look like crap. It's dark and not the right colors. Any ideas how to ...
1
vote
0answers
11 views

Is there a formal way to access those document in /usr/share/doc? [duplicate]

I find there are many documents for a software that I've installed. I know we can show man document by using man command. How about others, is there any formal way to access those document, or I ...
1
vote
2answers
28 views

Terminal auto complete adds aditional \

I am having the issue with my terminal and tab auto complete. If I try to auto complete using TAB for any file or folder that has a space in the name it is adding an \ before the space. For example ...
1
vote
0answers
15 views

App/Script consumes too much memory. Ubuntu may be killing it. How do I verify/check this assumption?

Hosted on Digital Ocean Ubuntu 14.04 1GB RAM, 30GB HDD I am running a python script that is reading a 200MB+ file line by line. Each line is parsed into a JSON object and then appended to an ...
0
votes
1answer
22 views

How to run multiple scripts each of which runs forever through one script?

Suppose I have the following two scripts: #!/bin/sh while true do #Do something sleep 1m done and #!/bin/sh while true do #Do something else sleep 1m done called First.sh and ...
0
votes
1answer
27 views

Why I'm receiving the message: “Impossible to resolve the host <my_name_account>”?

Since a day, each time I open a Terminal session and write any command, I'd been receiving the message: Impossible to resolve the host [my_name_account] However, the system performs any command ...
1
vote
0answers
9 views

Browser instance created through script doesn't cycle with ALT+TAB

I am using a bash file with a line chromium-browser http://www.gmail.com to create a browser instance. This browser instance doesn't cycle with ALT+TAB. How to fix this? Sometimes it does. And in ...
3
votes
1answer
44 views

list group of logged in users

I know I can see the list of logged in users, with the who command. But lets say, I want to see who in my group is logged on. How can I do that?
3
votes
1answer
373 views

How to turn current job in background?

I've ssh-ed to my ubuntu 15 server box. And I run apt-get xxx. It takes too long to download, and I don't want to stop it. How can I turn this job in background just like from the start I run it ...
0
votes
1answer
28 views

why command telnet responds strange? [closed]

i pass network course university 4 years before,i have a question that is possible amateur ,please help me.. i have ubuntu on vmware.i use this command: telnet google.com 80 it responds: ...
12
votes
3answers
2k views

How do I remove all lines in a file that are less than 6 characters?

I have a file containing approximately 10 million lines. I want to remove all lines in the file that are less than six characters. How do I do this?
0
votes
1answer
29 views

How to use upstart tasks to create a new file with today's date?

I am trying to use Upstart to create a new file with today's date. I have created a file called "Open.conf" at /home/myusername/.config/upstart I have the following lines in that file: description ...
1
vote
1answer
15 views

Jar print convert and print “$?” to 0

I have a clipscode which I want to insert in my database I wrote a Java prog for that and it is running fine in eclipse IDE if my clips code contains "$?" it preserved as it is in eclipse IDE. see the ...