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

learn more… | top users | synonyms (6)

2
votes
1answer
33 views

What does :(){ :|:& };: do? [duplicate]

What does this do: :(){ :|:& };:. I was reading through encyclopedia dramatica and saw that command. It just being above rm -rf / --a-flag-we-don't-mention-here makes me anxious about trying it ...
0
votes
1answer
16 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
15 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 ...
-1
votes
2answers
45 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 ...
0
votes
0answers
39 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
20 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 ...
0
votes
1answer
99 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
1
vote
2answers
187 views

nmap in a shell script : some issues

I decided to make a shell script for basic nmap scanning so I did it like this : #!/bin/bash sudo apt-get install nmap printf "enter the name of site to do basic scan on >>>" read NAME ...
1
vote
0answers
31 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
24 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
2answers
26 views

execute a file having some terminal commands [duplicate]

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. ...
0
votes
0answers
19 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 ...
11
votes
6answers
44k views

How to check the process is already running or not

I want to check the particular process in already running or not. I refereed this Q&A. But I didn't get any specific solution. Following is the example that I tried: I have created abc.sh file ...
0
votes
3answers
4k views

i just upgraded to ubuntu 15.04 but i cant launch the terminal

the question says it all i just cant get into the terminal and I've tried the control alt t thing to it still wont pop up please help !
13
votes
5answers
6k views

How to set the Default Browser from the Command Line?

Tried to set the default browser using the GUI tools but this didn't work overall. Is there a way to configure the system wide default browser from command line?
1
vote
0answers
26 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
36 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
vote
2answers
335 views

How to switch to a command-line console [duplicate]

I have just upgraded my system but it boots to Low Graphics mode by default. I have seen questions on how to solve this problem and they all suggest to run a couple of commands from a command-line ...
0
votes
2answers
19 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 ...
23
votes
6answers
16k views

X11 Forwarding over Gnu Screen, is it possible?

I use GNU Screen constantly. But, I've been trying to figure out if there is someway to get X11 apps to forward over screen when I am ssh-ing (Is that a word?). Currently if I try to run 'gedit' ...
0
votes
3answers
7k views

copy and paste doesn't work in terminal

When trying to copy and paste from the terminal, it doesn't work. Neither Ctrl + C nor right button after highlighting (no option to copy or cut appear). I installed Ubuntu 12.4 for the first time a ...
-1
votes
3answers
42k views

How do I use the “cd” command?

I am using Precise pangolin. So far as I know, commands like cd.. or cd- are used to browse through folders in the terminal. But whenever I enter one of this commands, it gives an error ...
3
votes
1answer
24 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: ...
-1
votes
1answer
46 views

Reg ex - awk - grep from getline result [closed]

I have a expr in awk, but I can't grep the result echo 34100 | awk '{expr $1 / 33.7 | getline result;}' -> sh: 1: 1009.89: not found the calculation is ok but I need to have the 1009.89. Could ...
0
votes
0answers
20 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
19 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 ...
5
votes
1answer
2k views

Exit from fish shell

I have Fish setup as my default shell. I want to exit from fish to bash. How can I do that with opened fish shell?
2
votes
2answers
174 views

How can I redirect the contents of a file to the pastebinit command? [duplicate]

Whenever I was to store something to show someone here, I run command-with-output | pastebinit. That returns the link to the paste online. For example: echo sometext | pastebinit gave me the ...
0
votes
2answers
35 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:
1
vote
1answer
74 views

Default login shell ksh

I want to set the default login shell to the Korn shell (ksh) but chsh doesn't recognize /bin/ksh as a shell. /bin/ksh has been loaded.
0
votes
0answers
33 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
2answers
604 views

How to use primary selection with tilda/terminal

Let me make my question a little bit more clear. I am a linux noob and still trying to get the feel on linux command line. I use tilda as my drop-down terminal. Suppose, I enter a command in ...
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
2
votes
0answers
32 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 ...
1
vote
1answer
23 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 ...
4
votes
1answer
275 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? [duplicate]

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
26 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

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 ...
0
votes
1answer
22 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
18 views

How do I create a literal control character in Kate?

I frequently use the ASCII character 31 ( Unit Separator; Ctrl-_ ) as a field delimiter for the work that I do. Using the bash command line, I can enter a literal control character by pressing Ctrl-V ...
0
votes
1answer
57 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' - ...
40
votes
7answers
18k views

Make a sound once process is complete

I have started a long process through a terminal. Is it possible to make the Ubuntu terminal make a sound once the process is complete? This way, I don’t need to keep checking, but will instead be ...
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
19 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?
0
votes
3answers
23 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
43 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 ...
0
votes
1answer
50 views

Copy files from list of files and create necessary directory structure

I have a file list like below: app/code/community/Company/Module/Block/Adminhtml/BlockAlias.php app/code/community/Company/Module/Block/Adminhtml/BlockAlias/Edit.php ...
1
vote
0answers
73 views

How to use snapshots with BTRFS in Ubuntu

My goal is to make snapshots while upgrading software. I installed Ubuntu in LVM partitioning but and I'm trying to follow this wiki and Whe I try to do pvcreate it gives me this : sudo pvcreate ...