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

learn more… | top users | synonyms (6)

0
votes
1answer
12 views

The system has become too slow and Terminal tool does not work and i have deleted it and deleted Ubuntu Software Center How do I download it again

The system has become too slow and Terminal tool does not work and you have deleted and deleted Ubuntu Software Center How do I download it again
0
votes
1answer
27 views

Unable to open tor in Ubunutu Gnome 16.04

I tried to installed tor from terminal by the following command sudo apt-get install tor Now i can't open Tor browser. I can't find it in my programs. I tried to open it using terminal. My ...
3
votes
3answers
235 views

How to write a script which works with or without arguments?

I have a bash script which goes something like this: #!/bin/bash if [ $1 = "--test" ] || [ $1 = "-t" ]; then echo "Testing..." testing="y" else testing="n" echo "Not testing." fi ...
0
votes
0answers
12 views

Displaying Jobs number in command line [Jobs:0]

So I am not completely sure how to explain this but I remember seeing a video with someone having a setup on their command line similar to: user@USER[Jobs:0]: I really like this idea but have been ...
1
vote
1answer
57 views

Install packages from terminal while other applications are running?

Sometimes I find myself installing packages from terminal while chrome is running (because I m following the instructions on how to install). Sometimes some other applications may also be running or ...
1
vote
0answers
9 views

What to do after Failed to start Load Kernel Modules

I tried to upgrade my system from Ubuntu 14.04. My laptop froze for a few hours. Nor even the pointer did anything. So I switched off by pressing the power button for a few seconds. This uncompleted ...
0
votes
1answer
30 views

Install vegan package for R via terminal command

Hi I want to install the vegan package for R via terminal command - so far I have this: This downloads the zipped file required (this part works) wget -O ~/file/downloads/vegan_2.3-5.tar.gz ...
0
votes
2answers
21 views

Run a command for all directories [duplicate]

I have a lot of directories that contain some text files and I would copy all files (of all directories) in a new directory. I'm looking for a bash command that do this. How can I do it?
1
vote
0answers
38 views
+50

How to change the text font color on multiple PDF pages at once?

This is a question which keeps coming back to me and hitherto has remained unanswered. Having once again spent too much time googling for a solution in vain, can anyone help? Goal I'm looking for a ...
0
votes
1answer
58 views

Provide password to `nmcli con up` in terminal 14.04

I am trying to connect to my VPN using terminal. My VPN password is a TOTP, so cannot save it to the connection conf file. When I try to connect, a dialog appear to enter password. I want to do it in ...
8
votes
5answers
483 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 ...
-3
votes
0answers
11 views

how to open social engineering toolkit

I already installed SET and ran it in the first time but i dont know how to open it in a new terminal.also it says metaspoilt is not included and to configure something please someone help me i am ...
2
votes
1answer
52 views

Is there a way to tell if Ubuntu is running in recovery mode via terminal?

I'm logged in via ssh(which I thought should not even be in recovery mode?) since my raspberry pi doesn't have monitor or keyboard. I've been having to remount the root directory as rw and there are ...
0
votes
1answer
24 views

How do I change extensions of different file types [duplicate]

I have many files with different extensions in one directory (for example .aa, .1ab, .412 . etc). How can I change extensions of all this files to .txt There is now other files in folder, only those I ...
2
votes
2answers
34k views

export http_proxy: where does the proxy setting get stored?

Today by mistake I had entered the following command in terminal with incorrect information export http_proxy="http://usrname:passwrd@host:port" and then my internet connection was having trouble. ...
1
vote
1answer
52 views

My internet is very slow and freezes-unfreezes-freezes-unfreezes (16.04)

I'm wondering if there's a command I can write in Terminal to search for and update any outdated things (like network drivers, adapters, etc)? I have a Lenovo ideapad. When it ran Windows 7, the ...
2
votes
3answers
25 views

How to view Real time Internet usage using terminal?

Uplink and Downlink speeds, other statistics etc without third party software
52
votes
8answers
108k views

Find number of files in folder and sub folders?

I want to find the total count of the number of files under a folder and all its sub folders.
4
votes
3answers
539 views

How to Rename Multiple Files With Their First 10 Characters?

I am having a problem to rename multiple files by replacing the name by their first 10 characters of their old name. I tried to find the solution in internet but I didn't find the answers. Example: ...
0
votes
1answer
16 views

Emacs suspends right after starting in bash

(Possibly) important info: Ubuntu version - 16.04 LTS GNU Emacs version - 24.5.1 GNU bash version - 4.3.42(1)-release I'm trying to edit my apache2.conf file in /etc/apache2/, but using sudo emacs ...
0
votes
1answer
15 views

unzipping a folder throws error: End-of-central-directory signature not found

unzip ABC.zip Archive: ABC.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the ...
0
votes
1answer
33 views

I'm getting this whenever I open terminal

How do I fix it :/ declare -x CLUTTER_IM_MODULE="xim" declare -x CMAKE_PREFIX_PATH="/home/ahmed/catkin_ws/devel:/opt/ros/indigo" declare -x COLORTERM="gnome-terminal" declare -x ...
1
vote
1answer
1k views

How to give permission to execute Eclipse application?

This one has confused me for a couple of hours. I know the command sudo chmod +x file to give executable permissions, and still I don't get my application to run. For context, I installed Eclipse ...
0
votes
0answers
40 views

$PATH problem in 16.04 “WARNING: your PATH doesn't contain …”

I use ubuntu 16.04 and trying to install a simulator (Omnet++). When I try and configure, it gives the below warning: WARNING: your PATH doesn't contain /home/aboubakar/omnetpp-5.0/bin! Add the ...
0
votes
0answers
21 views

How to test parallel computing and execution on Ubuntu

I run a task (CADO-NFS) on 15 virtual machines and it stop print the lines on the master machine as if I run this task only on one machine like my physical machine, how to know if the other machines ...
0
votes
1answer
16 views

After “source .profile” the variable in a new terminal is still empty

One of the applications requires JAVA_HOME variable. Java is installed. In ~/.profile I have this: PATH="/usr/local/heroku/bin:/usr/share/perl6/vendor/bin:/home/arch/.local/bin:$PATH" ...
-1
votes
1answer
37 views

Why does it show “'string' was not declared in this scope” in line 6? [on hold]

#include <iostream> #include <string> #include <map> int main(){ std::map <string, int> example; example["keyOne"]=1; example["keyTwo"]=2; std::cout << ...
0
votes
1answer
20 views

How to view the all command in man page 8

I try to view all the commands in man page 8 using terminal by this code man man 8, but it only shows man(1). So I tried another method man 8 man but it says No manual entry for man in section 8 See ...
0
votes
0answers
20 views

terminal not proceeding after I enter my password in ubuntu

I copy pasted this terminal: wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add At which, it asks for my password. The cursor moves to the next line and then nothing happens ...
16
votes
4answers
4k views

Replace grep command with grep -n --colour?

Because I'm lazy.... any time I want to use grep, I want it to be grep -n --colour. Is there a way to permanantly map this?
0
votes
0answers
25 views

Opening a terminal and getting network connection, Unity

I am running precise/unity installed on a chromebook. I would like help to even open a terminal window. My server/internet access is not connected and I cannot seem to reconnect but on Chrome OS ...
31
votes
5answers
43k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
2
votes
2answers
28 views

After switching mouse buttons is with xinput, each computer restart resets the settings

How does one go about "saving" settings in Ubuntu? I change my buttons on my trackpad using xinput set-button-map 11 3 2 1 (im a lefty) and it works during that session. However, when I reboot my ...
1
vote
1answer
40 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
1answer
23 views

Redirecting apt-get output

So there's some output from apt-get that I can't seem to redirect anywhere else. Here's a sample of what I see: sudo apt-get -qq -y --force-yes install cowsay 2>&1 > /tmp/tmp.txt This is ...
1
vote
2answers
56 views

Problems embedding a command in Bash PS1

Hi all I am having problems trying to embed this command in my bash prompt so that it will update itself each time the prompt is shown. I would like it to be part of the prompt itself free -m | tr -s ...
1
vote
0answers
26 views

How to find the version of Gnome in my current Ubuntu 16.04 os via terminal? [duplicate]

I wanted to check the version of my desktop environment which is currently Gnome. And l would love to know that from command line. How can l do that?
0
votes
1answer
29 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
0answers
21 views

Custom script not working as expected in ubuntu [duplicate]

I wrote a java application, want to register it as a service, so wrote a bash script in /etc/init.d/. Here is the script: #!/bin/sh # # chkconfig: 345 50 83 # ### BEGIN INIT INFO # Short ...
0
votes
0answers
11 views

System Tunables with sysctl [duplicate]

for my linux foundation study i must do this; In the below we are going to use two methods, one involving sysctl, the other directly echoing values to /proc/sys/ kernel/pid_max. Note that the echo ...
0
votes
3answers
52 views

How to display terminal using CTRL+ ~

How do I set the shortcut to display the current terminal that is open?(Let's say I am navigating facebook and then I press ctrl+ ~ my terminal would immediately display)
0
votes
0answers
15 views

sqldeveloper is not found in application list

I installed sqldeveloper successfully, but the problem is that, I cannot find sqldeveloper in applications list. If i want to run it, i need to run it via terminal only. A main thing to note is that, ...
0
votes
0answers
8 views

Save time command in a text file [duplicate]

I'm trying to do a script to get the Gera (.class file) output in a range and get the time of system resource usage. My sh file: for i in $(seq 16 20) do echo "$i" time java Gera $i done ...
1
vote
2answers
27 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 ...
3
votes
1answer
114 views

Copy all files whose hashes don't match

I currently have a hash list (known good) of a selection of various files. I want to copy all files when their hashes do not appear in the hash list to a separate directory. I have got the md5deep ...
5
votes
4answers
39k views

Failed to get size of gamma for output default when trying to add new screen resolution

I'm trying to adjust resolution on my new MSI GT70 2OC. In settings, only one resolution is available: 1920x1080. This is fine, except that I need to decrease the resolution and make it more ...
3
votes
0answers
50 views

Bash Script Works On Command Line but not at startup

Let me ask this another way: There are at least (2) ways to have a bash script called automatically when a user connects to OpenVPN: Placing the script in the /etc/network/if-up.d folder Renaming ...
7
votes
1answer
746 views

What are the differences between executing shell scripts using “source file.sh”, “./file.sh”, “sh file.sh”, “. ./file.sh”?

Have a look at the code: #!/bin/bash read -p "Eneter 1 for UID and 2 for LOGNAME" choice if [ $choice -eq 1 ] then read -p "Enter UID: " uid logname=`cat /etc/passwd | grep $uid | ...
0
votes
1answer
9k views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
1
vote
1answer
77 views

How to change Terminal Title in ubuntu 16.04

When I was using ubuntu 14.04, it's easy to set title. Just press F2 or move mouse to top menu. But there is no menu on ubuntu 16.04 and press F2 can't change the title. What should I do?