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

learn more… | top users | synonyms (6)

6
votes
3answers
250 views

how can I close this dropdown terminal?

I must have hit something, I have a huge terminal window in the top third of my screen. (which is kinda nice, but It covering up my desktop, I don't know how I opened it, and I cant seem to close it. ...
0
votes
0answers
11 views

howto show all packets with a certain dependency

i want to find out which packets link to openssl on my system. what would be the bash command to get that information. i know that using ldd /path/to/file i can see what links to a certain binary or ...
51
votes
4answers
58k views

How to list dependent packages (reverse dependencies)? [duplicate]

In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.
0
votes
0answers
5 views

howto show all packets linked to a certain library

i am looking for a way to show all packets linked to a certain library. ldd /path/to/file shows me all libraries linked to a certain file. what i want to know is: which packages available on my ...
0
votes
0answers
22 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 ...
5
votes
1answer
38 views

How do I exclude a specific extension from recursive file copying?

I want to copy all of the files and subdirs except the data file which named *.data to a destination dir. [ichen@ui01 sub_test]$ ls a.cxx a.data subdir [ichen@ui01 sub_test]$ ls subdir/ sub_a.cxx ...
3
votes
4answers
164 views

How to use grep on all files in a directory?

I want to search for a string of text in all files in a directory (and not its subdirectories; I know the -r option does that, but that is not what I want). Running grep "string" /path/to/dir is ...
-1
votes
2answers
28 views

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

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. ...
2
votes
1answer
28 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
12 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
14 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
42 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
36 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
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 ...
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. ...
0
votes
1answer
78 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
votes
2answers
40 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.
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
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 ...
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
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
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. ...
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 ...
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
21 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
29 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 ...
0
votes
0answers
25 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 ...
1
vote
2answers
334 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
4answers
41k 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
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: ...
-1
votes
1answer
45 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
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 ...
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
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:
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
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 ...
7
votes
4answers
412 views

How to detect the number of opened terminals by the user

I am using Ubuntu and can manually change the bash shell prompt color to green using export PS1="\e[0;32m[\u@\h \W]\$ \e[m" However, I want the shell prompt color to automatically change whenever ...
0
votes
2answers
602 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
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 ...
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 ...
4
votes
1answer
271 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 ...