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

learn more… | top users | synonyms (6)

0
votes
1answer
8 views

How do I delete wine-staging-i?

I am trying to remove wine and all of its remnants. When I use dpkg-query -l '*wine*' it tells me I have rc wine-staging-i version 1.9.10 with i386 architecture installed, but when I try to ...
0
votes
0answers
12 views

Terminal fails to connect to a proxy server

I am trying to connect to the proxy server of my university. I have successfully logged in to proxy via firefox but when trying to use ftp or wget I get the following error: Resolving ...
0
votes
0answers
18 views

Open folders on USB drive over VirtualBox

I am running an application under Oracle VM VirtualBox. At the UXterm, I'm trying to install a driver from a flash USB drive. The driver is in the DCU-1.0.10 folder, on the F: drive (as identified by ...
1
vote
0answers
27 views

Launch python script fullscreen on startup (Ubuntu 14.04)

I have a python program that I would like to automatically run after logging in. This shouldn't be much of a problem, however, I would like the terminal to be in fullscreen mode while running the ...
0
votes
1answer
22 views

Hiding plus and dropdown icon Ubuntu 16.04 terminal

I recently upgraded to Ubuntu 16.04 and liked it so far. The only thing that is bugging me is the plus and dropdown icon that appear in the terminal when you open multiple tabs, see screenshot below. ...
1
vote
1answer
16 views

USB set to write protect mode

I used the dd command to burn a bootable Ubuntu distro (ISO file) to my USB. Now the entire drive is completely "read only". It's impossible to modify it! I tried switching to root and executed ...
0
votes
0answers
14 views

Update URLs in one file with URLs in another file

I have a local text file that, among other things, contains a list of URLs that expire periodically. There is a file on github that I can pull on occasion that has the updated URLs. Each of those URLs ...
0
votes
2answers
23 views

execute a file having some terminal commands

I want to create a file which contains some commands (suppose 4 commands) such that when I click on that file, the commands will executed in terminal. Is it possible ? I am using Ubuntu 14.04 LTS. ...
1
vote
0answers
19 views

Debugging preseed/late_command for ubuntu 16.04 server: tee not found vs nonexistent directory

I am trying to run the following preseed file on a ubuntu 16.04 server machine (during a packer build): d-i preseed/late_command string \ in-target mkdir -v -p -m 0440 "/etc/sudoers.d"; \ in-target ...
0
votes
1answer
28 views

Terminal Errors when I open Browsers

When I open a browser in terminal (I've tried Firefox and Google Chrome) I get error messaged. When I open Firefox it spits out the following message: Performance warning: Async animation disabled ...
-1
votes
2answers
41 views

bash send output from command to variable

I am trying someting very easy, I have seen some answer, but they do not work I am trying to send the output of ls-al to a variable some code before this line if [[ $ans == "L"* ]];then ...
-1
votes
2answers
39 views

How to install VirtualBox in Windows 8.1 [on hold]

I'm trying to install virtualbox on my PC, but every time I try to install it through the command line, it says that sudo isn't recognized as a legitimate command.
0
votes
2answers
18 views

ls and cd give no output when used with sudo

In my root user directory, ls outputs this: Desktop Downloads Music Public Videos Documents examples.desktop Pictures Templates However, sudo -i ls does not give any output ...
0
votes
0answers
15 views

How to install dependencies for unity 8 music-app an terminal-app?

I used vthompsom ppa to install unity 8 apps in my Ubuntu 16.04. I could get file manager app, calculator app and weather app working. Media hub app installed but is not available in the dash. Music ...
0
votes
1answer
23 views

What is happening with stdout inside function?

If I run the following command I get the expected output as shown. jonathan@Aristotle:~/EclipseWorkspaces/AGI/ShellUtilities$ df --output=fstype,source $(pwd) Type Filesystem ext4 /dev/sdb1 If I ...
0
votes
1answer
75 views

Run Terminal commands on boot Ubuntu 16.04

I want to have my system boot into CLI only (no X, GUI) and run some sudo (root) commands. An example would be Terminal launch on boot and run sudo cd Desktop/folder then sudo ./Example -c
-2
votes
2answers
24 views

How to edit my /etc/sysctl.conf file? [on hold]

In one of the labs for learning Linux system administrator I have to do : Now change the value by modifying /etc/sysctl.conf and force the system to activate this setting file without a reboot. ...
3
votes
1answer
21 views

terminal appears on hotkey but command not executed

Me being the lazy bum that I am, wanted to make youtube-dl (the script that downloads youtube videos) execute upon pressing a hotkey for the current link in clipboard. In my keyboard shortcuts i made: ...
0
votes
0answers
19 views

Run interactive script on each users first login, whether on SSH, virtual terminal, or GUI

I have an interactive script that I need to run whenever a user logs into a system for the very first time. It uses read to gather some user specific information required for the first-time ...
0
votes
0answers
15 views

Guide to using trayer?

I am trying to use trayer through command line and I don't understand how to add items onto the actual tray. I am trying to add brightness indicator next to the wifi symbol so i can easily adjust my ...
0
votes
0answers
32 views

Error while executing sudo sh./usertest.sh

I faced an error during the Setup software at Raspberry Pi; While executing the command line in raspberry Pi shell, sudo sh ./usertest.sh I got the following errors . detec_fb_type :unknown device ...
0
votes
0answers
12 views

Stored certificates in LDAP

Does anyone know how to store certificates in ldap? I mean certificates itself, not to directories
0
votes
2answers
33 views

What command can I use to minimize the current terminal window? [duplicate]

Which command can I use to minimize the current terminal window. i.e. this should do the same as a click on the minimize window control:
0
votes
0answers
24 views

Why are the images produced by pdfimages different when using the -all flag?

It's my understanding that pdfimages -all extracts images from PDFs in their native formats. Therefore, I expected that the JPG (lossy) images extracted from that command would have the same pixel ...
4
votes
1answer
270 views

Set bash as default shell with option to enter into fish

I've seen a few questions as to how to enter into bash while fish is the default shell. I actually want to do the opposite. I currently have fish as my default shell, but would like to return to bash ...
1
vote
0answers
13 views

How to blacklist certain commands from aliasing?

There are certain important commands I use a lot such as sudo, cd and ls which if malicious aliases were created of could cause some major problems, especially with the first listed. And I know that ...
1
vote
0answers
25 views

Ubuntu behind the scenes

I am just curious about what Ubuntu is doing behind the scenes after I type a command in the terminal and it takes a long time to complete the requested action. In my case here now, I typed the ...
0
votes
1answer
20 views

How can I accept virtual box license agreement in Ubuntu(16.04) terminal?

I am new to Ubuntu. I have just installed Ubuntu-16.04 in virtual-box and my host-OS in windows-8.1. I have run this command: sudo apt-get install virtualbox
0
votes
1answer
37 views

Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll

When I run the command php -v this error comes up in ubuntu terminall: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll' - ...
0
votes
1answer
19 views

SSL/TLS error with links and lynx - possibly due to CloudFlare

I often work in the terminal - for example on a VPS I've set up - including for browsing with links and lynx. Unfortunately I've been getting some errors: links: Error loading ...
1
vote
1answer
13 views

How to restart gnome shell but daemonise it from a script? [duplicate]

I have a couple of scripts to work around Gnome Shell's inability to work well automatically when swapping between FHD (1080p) and UHD (4k) screens. I set various things with gsettings, restart nemo, ...
1
vote
0answers
16 views

notify-send not showing popup message

I have a script which executes on certain conditions, whenever I manually execute the script, the popup appears, however if i try to aumotate the script(i.e. run the script right after system is ...
1
vote
2answers
26 views

how to find the files less than 5 MB in /var/log/ and display with the size of file? [duplicate]

I need to find the files less than 5 MB in /var/log/ and the output should display the size of each files. which command should I use?
2
votes
0answers
30 views

Why are image files from pdfimages bigger than the PDFs they came from?

On Ubuntu 16.04, pdfimages -all produces image files whose sum of storage use is greater than the PDF files from which they came. Is there any explanation for this? How can I extract image files ...
0
votes
3answers
22 views

How to run a Python script not as '~$ python myscript.py' but as a single command '~$ myscript'? [duplicate]

I have a Python script which takes command line arguments. When I want to run the script I have to navigate to its directory and run: python myscript.py [arguments] How can I run it like: ...
1
vote
1answer
38 views

Can't make bash default shell

I installed ZSH and didn't like it and I want to revert back to bash. I uninstalled ZSH before I tried changing the default shell. I uninstalled ZSH and then ran the commands chsh and sudo chsh ...
1
vote
1answer
21 views

How to Defrag XFS

I have a /home partition in a separate disk with XFS, how do I de-fragment it ? (on-line or off-line) I haven't tried anything yet and the / partition has BTRFS. Also how to schedule it would be ...
-1
votes
0answers
8 views

Want to rename multiple files with removing of first 12 characters [duplicate]

I want to rename multiple file with some conditions . In all files ,first 12 characters are same and i want to remove these first 12 characters of all files. Here is short example : Suppose I have ...
0
votes
2answers
43 views

How do I copy Command Line Text? System Monitor > Processes > Column “Command Line”

Startup Applications Preferences I'm adding additional startup programs, and I've found it most easy to just launch up the Process tab and type command (manually) from the Command Input Field. I just ...
0
votes
0answers
39 views

How to fix Error after run sudo apt-get update

I get following error after runing sudo apt-get update in ubuntu terminal: Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Get:1 ...
0
votes
1answer
23 views

Is it possible to install rocket (rkt) in ubuntu?

Is it possible to install rocket rkt (CLI for running app container in linux) in ubuntu? How?I just want to try it out without setting up a virtual machine and installing CoreOs.
-1
votes
0answers
18 views

On my Mac, I can't enter a password for sudo commands [on hold]

To make this more clear, I am attempting to clear my DNS cache on OS X 10.10.3 and I used the command sudo discoveryutil mdnsflushcache and it asked for a password and the only thing that appeared was ...
1
vote
0answers
17 views

Command line syntax for VLC GUI video convert?

I'm trying to write a script to convert lots of video files. Using the GUI, I was able get VLC to perform the kind of conversion I wanted. However, I can't see a way to generate an equivalent ...
1
vote
0answers
15 views

Open Terminal Shows : bash: alias: =: not found How to remove? [duplicate]

when i open my terminal it shows: bash: alias: osmall: not found bash: alias: =: not found bash: alias: cd: not found bash: alias: /var/www/html/OpenSupermall/: not found bash: alias: ...
0
votes
2answers
43 views

run php file from cron and start browser through exec on ubuntu [duplicate]

I am trying to start FireFox from php script using exec("firefox"). This works fine if i run php file from the terminal but does not work when run by the cron. User for cron & terminal is root. ...
1
vote
0answers
36 views

The locate command cannot find obvious directory?

I have a directory called OC located in /home/raph/OC. I've updated the database with the updatedb command and i still can't find the directory. I've seen in an another post that the problem could ...
0
votes
0answers
29 views

A problem with Terminal

I've just download Steam on my Ubuntu 16.04 LTS and it said that I need to type my current password but even though my keyboard is still working correctly, I can't even type anything on Terminal. So ...
1
vote
3answers
47 views

How to rename photo filename to include the date?

I have a group of photo files that are named with only a sequence number like: Imagexxxx.jpg (xxxx is just a sequence number) what I am trying to search but sadly no results, is to add the date of the ...
0
votes
0answers
33 views

I have a problem with a loop in a script. How I can create a loop in a loop?

I'm doing a script for improving my scripting capacities, but I can't make a loop work, how I can fix it? Here's the script: As far as my knowledge go, the problem is in the below script: read op2; ...
0
votes
0answers
31 views

SSH issue commands stucking

when I do ssh to my server and logged in successfully through terminal, the commands are stuking and taking longer to infinite time. e.g. ls,nano etc. I'm using ubuntu14.04 Terminal.