Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

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

0
votes
0answers
5 views

PIL module was not found in Thonny

I can not use PIL module in Thonny IDE. from PIL import * ModuleNotFoundError: No module named 'PIL' Interesting part is that I can find PIL module in Python Shell but not in Thonny. By the way my ...
5
votes
2answers
244 views

Is it dangerous to install hacking tools on my private linux machine?

I use my Ubuntu for private and business purposes. Can I also install tools on my computer that are actually there to perform penetration tests? Or is it harmless?
0
votes
0answers
10 views

SSH session freezes after some time

The ssh session freezes if I don't work on the terminal for few minutes(~20 to 30 minutes). Is there any command to cope with this? In fact, in my case, I am working on two servers. At first, I need ...
0
votes
2answers
19 views

Is there any way to manually add a “package” (eg. Python) to a group?

I've made a Python script that basically holds the account information for a special account I use on Reddit. All's fine and dandy, until I realized that, even though the folder is hidden, users etc. ...
0
votes
0answers
33 views

need to copy images from 1000 subfolders into one single folder [duplicate]

How can I copy around 1000 subfolders each having 4000 images into one single folder named all_images? I tried the following: $ cp upload/*/* all_images/ and got the following error: bash: /usr/...
0
votes
0answers
13 views

Running GamingAnywhere from Shell scripting in ubuntu

I'm trying to run game on gamingAnywhere "Event-Driven Server" by shell scripting at startup. I tried lots of ways but not really working. 1. #!/bin/sh gnome-terminal --working-directory=/Path-to-...
0
votes
1answer
26 views

Terminal stopped working [Ubuntu 18.4LTS] [duplicate]

I did a fresh install of Ubuntu 18.4 LTS, coming from Windows, and everything was working great! I installed my needed apps; I'll list them below in case they have something to do with the problem, ...
0
votes
0answers
44 views

Is there any shortcut for parent folder in console?

I would like to know if there is any plugins and/or utilities that could make my life MUCH MORE easier. When moving from folder to folder through console, I can use the Tab key on my keyboard to ...
0
votes
0answers
19 views

Borgmatic cron job errors with python `ModuleNotFoundError`

I am trying to set up a daily cron job which backs up some files using borgmatic, but I keep getting the same error and have not been able to figure out how to fix it. My borgmatic version: $ ...
0
votes
1answer
32 views

generate 2 random files 500MB with some common lines

(Hi!) I need to generate 2 files (each file must be 500 MB). And those 2 files should have some common lines (but not necessary at the same place in the file) I was thinking about something like ...
2
votes
1answer
43 views

How to know if a package is graphical or command line application?

I am using Ubuntu Server, hence I want to know if a package is GFX or CLI before installing. Wrongly installing GFX apps will cause a lot of dependencies to be fetched, and they will not work anyway (...
-2
votes
0answers
53 views

Ubuntu command prompt [on hold]

Why the $ always appear on a separate line?
0
votes
0answers
23 views

how to assign file name with full path to a variable in bash script

suppose i opened my file manager nemo and select a file named "abc" so in the location bar it shows media/myuser/folder1/subfoler/ and the selected file name is abc How can assign the selected (...
0
votes
0answers
13 views

What is LD_TRACE_LOADED_OBJECTS?

I recently learned about LD_TRACE_LOADED_OBJECTS=1 ./app, to find the loaded libraries for applications. (COOL) ok, but what is it? Is it a shell variable? I tried: printenv | grep LD which shows ...
2
votes
0answers
46 views

Bash convert string to integer

I am new at bash scripting, I need to write a script capable of taking a file with a given text (written numbers and arithmetic operators) and transform these words into integers and ex: +, -, *, %. ...
1
vote
1answer
37 views

Executing simple aliased shell command without opening terminal

I often have to reconfigure my monitors for work, home, etc. on my laptop running 18.04. I wrote a simple shell aliased command in my .bashrc that configures them for the location (eg. wmc for "work ...
0
votes
1answer
14 views

problem installing Jupyter Notebook on Mac

I've literally tried everything and read every previous post about this. First I tried installing Anaconda, and tried to run Jupiter and it said command not found. Then I tried pip install Jupyter ...
0
votes
0answers
27 views

How do i fix it and get it running, if it keeps showing me these words [duplicate]

Hi I am quiet new to the Ubuntu system, we sit with a problem with one of the computers not starting up as it normally does, so we don't have the normal ubuntu 16.04 or advanced ubuntu settings but ...
1
vote
2answers
30 views

how to add .sh file or path to .profile to run my app?

In home I have a project folder nomse/bin/main.dart. in terminal. If I use command like, dart nomse/bin/main.dart I can run my app. UPDATE-1: I need to add path to .profile so I can run my app ...
0
votes
0answers
36 views

sudo: systemd-sysusers: command not found (ADB: udev rules)

I after an unsuccessful attempt to set up LineageOS on my Samsung months ago, I am trying again. Using instructions for setting up udev rules found here: https://github.com/M0Rf30/android-udev-rules#...
1
vote
1answer
42 views

Turning screen off when running in without window manager running

Running an old laptop with Ubuntu 18.10 as a small server. I have disabled the window manager to start at boot by setting: sudo systemctl set-default multi-user.target (since when I use the computer ...
0
votes
0answers
18 views

How to remove desktop interface and run gui application from the command line?

I have tried to remove desktop interface on my Linux (Ubuntu 16.04) PC and replace initial screen (desktop & application launcher) with the command line interface and launch guy application from ...
0
votes
1answer
27 views

How to auto answer to a multi-stage command?

I'm new in Ubuntu terminal. I have a command to connect to a VPN server. in first step I must type sudo vpn_command and so I must type root password, then in next step I must Enter "yes" and vpn ...
1
vote
1answer
40 views

Manipulate the Default Shortcut Super+Space for Switching to Next Input Source without Graphical Representation

I have two commands those are binded with CapsLock key and Shift+CapsLock as mentioned in this Q&A Modeless/stateless layout language switching with Caps Lock, again (18.04 LTS Bionic Beaver) My ...
5
votes
4answers
88 views
+200

Shell Script : Focus already open terminal tab from second terminal tab

this may be a bit oscure but I'm trying to do something a bit tricky : I'm writing a script that opens up a new tab with commands, I'd like to switch back to first tab after the user has input to the ...
0
votes
1answer
61 views

How to repair bash on Ubuntu 18.04

Once I tried to open terminal in my Ubuntu 18.04 but it didn't work (Ctrl+Alt+T too). I'am tired of searching on forums by two days so I decided to ask a question here. I think that problem in bash ...
1
vote
0answers
22 views

Ubuntu gets stuck in a login loop, can't open terminal

I have Ubuntu 18.04 installed on my computer. now i can't login to my account. when I enter my password, screen turns black for a second and returns into login page again. I saw many issues about ...
0
votes
0answers
24 views

Geany Terminal Run Problem

I just installed Geany and when i click f5 to run code it has this message in the terminal: file:///tmp/geany_run_script_P8SB0Z.sh:%207:%20/tmp/geany_run_script_P8SB0Z.sh:%20python:%20not%20found
0
votes
1answer
35 views

I booted UBUNTU to a USB flashdrive. How can I run it now?

Please help, I did the complete step by step guide, got UBUNTU onto my flash drive but I can't seem to open it. How do I do this?
0
votes
0answers
23 views

Console slow at start up

When I open a new console (Ctrl+Alt+T), it opens but takes like 8 seconds to print the user name and get ready for typing. I cant figure out how to fix it. Thanks
5
votes
1answer
61 views

How to run gsettings for another user Ubuntu 18.04.2 LTS

I am trying to run gsettings for another user in Ubuntu 18.04.2 LTS. Specifically, I am attempting to prevent the user's screen from locking. This will be run as part of a bash script. The commands I ...
0
votes
0answers
18 views

Creating Hotspot from wifi [duplicate]

I read somewhere that it is possible to make Wifi hotspot from wifi connection. (Interface connected to wifi). Is it really possible? If yes, how can I do it? In addition, I would like to perform this ...
0
votes
0answers
24 views

apt install - can't autocomplete package names (Docker)

It's the same error as in several other posts, but none of the solutions work for me. I'm typing apt-get install ar<TAB><TAB> and there's not auto-completion. I'm using an Ubuntu-...
1
vote
0answers
25 views

How can I get an error report when I execute a command in Ubuntu server? (Backup on PostgresQL) [duplicate]

I have to do a backup of a (heavy) PostgreSQL database in Ubuntu Server and I want to make sure that I don't have any fails. The command is: pg_dump database_name -h localhost -p port_number >&...
1
vote
0answers
33 views

Use Insert Key to toggle insert/overwrite mode in Bash Terminal [duplicate]

After years of annoyance I finally setup Insert/Overwrite mode in Bash Terminal by creating this file: $ cat ~/.inputrc # ~/.inputrc - complements /etc/inputrc - global inputrc for libreadline # ...
0
votes
0answers
14 views

mscorefonts sabotages extras installation with “dead end” screen [duplicate]

I’m trying to install restricted extras from the command line with the following: sudo apt-get install kubuntu-restricted-extras After I enter my password and then a "y" to go ahead and install or ...
0
votes
1answer
48 views

Find files that match multiple criteria and copy them to a folder [on hold]

I'm new to this forum and hope someone will be able to help me. I'm MacOS user. I have a Folder A with about 5000 files. They are named as described below: Booking #0001 - PLACED Booking #0001 - ...
1
vote
1answer
30 views

“fsck exited with status code 4” after choosing to boot Ubuntu

When I turn on my computer, it goes into the Ubuntu interface and asks me what I want to boot into: Ubuntu Advanced system options for ubuntu Windows boot manager (on /dev/sda1) System setup When I ...
3
votes
3answers
324 views

How to zip specific files that are located in subdirectories

I have a directory that consists of many subdirectories, and each subdirectory contains different files such as: Directory All contains subdirectories A, B, C, and D. Each subdirectory contains files ...
0
votes
1answer
32 views

How to uninstall php server monitor?

I've researched quite a bit and haven't found the answer, I've searched every package in my computer and none of them were from phpservermon so I couldn't remove it through terminal. The version I ...
0
votes
3answers
47 views

set proxy value in only current shell temporary

I have a question reagrding setting proxy value in a unix OS. I want to apply the proxy setting for current on going shell temporarily and should not affect the system wide proxy settings because i ...
1
vote
1answer
66 views

Autocomplete dotfiles without typing the leading dot

I've been getting close to bash on finding the really nice features of Bash-it. I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one ...
0
votes
0answers
22 views

Core ubuntu applications will not open

The Files and Terminal apps on my machine will not open. Anytime I try, it loads for a bit, and then nothing. No loading sign, no window, no gui, no error, nothing. If it helps, when I start up my ...
0
votes
1answer
44 views

Creating multi directory on Desktop best practice

My pwd is /home/john and need to create three folders, File1 File2 File3 in the Desktop folder. I have two choices. cd Desktop/ mkdir File{1..3} or mkdir Desktop/File1 Desktop/File2 Desktop/...
0
votes
0answers
19 views

gnome failure after installing Ubuntu, prompted to command-line

So I tried to install Ubuntu in several ways (vm, dual boot, usb) but every time after using the os for a few hours an error pops up and slowly I can't launch any graphical software and prompted to ...
0
votes
2answers
65 views

can relative path access more than one level?

I'm new to Linux and was wondering if relative path can access more than one level. For example: /home/john/Desktop/Myfiles/text.txt If i'm currently at ~/ can i jump to text.txt without having to ...
0
votes
3answers
74 views

show output from script that would be seen in terminal

I have working scripts for windscribe vpn. At this time there is no GUI. They run from the desktop no problem. How do I see the output that I would see in the terminal. I can get the notification ...
0
votes
1answer
32 views

Why doesn't this work: ~$ echo “trythis” | sh ./script.sh

I'm trying to feed the string trythis into the script I made that creates a directory using what is written after it. For example this works: ~$ sh ./script trythis But using the pipe does not. I ...
-1
votes
0answers
26 views

Mac Terminal Rename Files and Folders until character [closed]

Inside a folder I have folders and files that looks like: Folder1-jump File1-run File2-walk Folder2-sprinter and I want to remove every character on the right and including the "-", achieving: ...
2
votes
1answer
60 views

Command to List Installed and Enabled GNOME Extensions

I want a command to list all extensions currently installed. Also, a command to list all enabled extensions. Is this possible?