Questions tagged [command-line]

This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Hi, I am running a Minecraft modded server, and i am wanting to restart the server every 24 hours

I made a .SH file that looks like this: Letting people know that the server is going to restart tmux send-keys -t VHS "/say §cServer restarting in §l30 minutes. §rPlease get ready to log off.&...
PerplexApple's user avatar
-1 votes
0 answers
7 views

Brace expansion not working within shell script

I'm trying to use brace expansion in a shell script to create a directory structure but I am not getting the desired effect. With the line sudo mkdir -pv /opt/test/{one,two,three}-way, issuing the ...
Jonny Wright's user avatar
0 votes
2 answers
38 views

How to parse large files looking for a word

I have some extremely large json files I am not even really sure if some are even written correctly Therefore viewing the with a editor is not possible (it freezes vscode etc) I can view them with ...
KansaiRobot's user avatar
0 votes
1 answer
19 views

How to find and replace a string in all files on ubuntu including root files with another string

I am running Ubuntu 20.04 server. It is a fully configured LEMP email and web server. In my super long process of building this, i know I entered my servers IP address on one or many of my ...
DanRan's user avatar
  • 71
-2 votes
0 answers
20 views

cant launch program from terminal but can from gui

i'm trying to get into programming and using that to make a model in blender but the (copied first draft) program is crashing. i get an error which states that i have to look to the terminal for ...
rik's user avatar
  • 1
1 vote
0 answers
14 views

How do I mass-convert png images to GIMP brushes?

I've been trying to make some battlemaps for my DnD game in GIMP, I downloaded a whole bunch of assets and textures in png format. To be able to easily use them, I'd like to mass-convert the PNGs into ...
kakost's user avatar
  • 11
0 votes
0 answers
30 views

Show a tag in parentheses when connecting through SSH

This is probably a pretty silly question, but one that I can't find the answer anywhere because of the description of the problem: I have 2 linux servers. One is TEST and another is PROD when I ...
Beronien's user avatar
0 votes
1 answer
18 views

How to install the libxcb-cursor.so.0 library?

Looking to install the feather wallet for Monero but am missing a shared library as below: nicholas@mordor:~/Downloads$ nicholas@mordor:~/Downloads$ wget https://featherwallet.org/files/releases/...
Nicholas Saunders's user avatar
-1 votes
1 answer
24 views

There is nothing in my $HOME/.vimrc file, is that right?

I am using an Ubuntu Desktop I think Focal, version 20 and I need to add some line numbers to my vim and I ran the following command to locate my .vimrc file: vim --version which says my file is in $...
Daniel's user avatar
  • 139
1 vote
0 answers
32 views

SSH showing no Output

I have not used SSH before so I'm probably doing something wrong. I am trying to connect to a VM via SSH. On the VM I ran ip a | grep inet which provided this output: inet 127.0.0.1/8 scope host lo ...
Jonathan Strange's user avatar
0 votes
0 answers
13 views

Install of Lubuntu successful on second partition of HDD, but initramfs terminal opens and I am unable to type

Along with the potentially relevant Problem blacklisting hash (-13) that appears several times, Lubuntu opens a terminal. BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash) <...> (...
MILK INTERNET's user avatar
0 votes
0 answers
13 views

How to add a user in only particular directory and no permission to another directory linux

My Root access is /Var/www/html and i create giz folder under html and i need a access for this particular folder for jslpsgiz user and this user can not accessing in other path and folder. Path /var/...
Tuken Mahata JSLPS's user avatar
-2 votes
0 answers
18 views

WIFI not working in my Lenovo Legion 5 [closed]

I installed Kali Linux (latest) in my Lenovo Legion 5 with RTL8852AE network card but the wifi is not working. I installed the drivers manually but it is not solved. Is there any issue with Lenovo ...
Manoj Balami's user avatar
0 votes
2 answers
47 views

Adding simple shortcut on the terminal, the right way

I am trying to add folder to PATH variable (for specific user only). so to ~/.bashrc i have added export PATH=$PATH:/home/username/Tools/scripts/ within this folder i am having scripts and some ...
TeslaS's user avatar
  • 1
0 votes
1 answer
40 views

How to put sudo operations (apt-get) on a shell script? [duplicate]

I am doing several operations installing packages etc and one of those are sudo apt-get update && apt-get install -y curl obviously it asks my password. Now, I would like to put all the ...
KansaiRobot's user avatar
0 votes
0 answers
18 views

Landscape-api couldn't parse value as data

I've been using the landscape-api command line to create and edit scripts in Landscape for a while. Recently, however, I started getting an error: Couldn't parse value <code> as data The ...
joesiegel's user avatar
0 votes
1 answer
22 views

autocomplete-like feature in terminal (ROS2) that shows the "options" for that command typed in [duplicate]

It's not quite autocomplete but on the ROS2 course on O'Reilly, the instructor types part of the command, presses Enter and the terminal shows any and all commands for which what has been typed before ...
mLstudent33's user avatar
1 vote
0 answers
44 views

rc-local.service: Failed with result 'exit-code'

I want to active UDPGW port for calling and gaming in my VPS server, I did this commands for my previous two VPS and it worked fine. sudo wget -O /usr/bin/badvpn-udpgw "https://raw....
MorinKite's user avatar
0 votes
2 answers
34 views

What is the safest and most efficient way to remove multiple applications installed by 'sudo apt install gnome-*'?

I Accidentally ran sudo apt install gnome-* in terminal and a lot of applications were installed in my system. I would like to know if there is a way to get rid of all those apps that were installed ...
Piero Teran's user avatar
0 votes
0 answers
23 views

How to increase existing partition

Good day StackExchange Community, I have server with 36TB attached storage with a couple of partitions created on them. One of the partitions are becoming full and I would like to increase it but it ...
MorneM's user avatar
  • 1
0 votes
0 answers
25 views

How to run shell script as regular user and then exec sudo in shell script?

How to run shell/bash script as normal user and exec sudo no password in the script
Z. Neuf's user avatar
-2 votes
0 answers
24 views

What has to be done in order to delete recup,dir files [closed]

What is a recup dir file? Why were they created in the first place? How to delete a recup.dir file? Why do they defy all attempts to delete them? Why does sudo rm -rf recup_dir* have no effect?
Ian Quinn's user avatar
0 votes
1 answer
50 views

Autoinstall via ISO boot kernel, correct command args

I'm new to the autoinstall process, where I am finding documentation difficult to follow; however, most of the docs refer to using a virtual machine (qemu) which we are not. On the Autoinstall ...
Forrest Aldrich's user avatar
0 votes
1 answer
135 views

My sudo password was completely showing on my terminal - Ubuntu 22.04

I'm using Ubuntu 22.04 on my laptop, on my PC is normal but with my laptop, everytime I input password for sudo it was showing on screen. I trying to edit in visudo but my password still showing on ...
JohnyDeen Agent's user avatar
1 vote
1 answer
113 views

Install Linux Steam on WSL2 through Windows

I'm running Windows 11 and would like to install the Linux version of Steam onto Windows using Ubuntu on WSL2 with Ubuntu. I've tried multiple times and many different ways, but cannot get it to run ...
Shaun Roselt's user avatar
1 vote
1 answer
133 views

I am confused about --make-{shared,slave,private,unbindable} flags of the mount command

I am confused about --make-shared, --make-slave, --make-private and --make-unbindable flags of the mount command. Can someone please explain in simple words , what each flag do ? and what is the ...
Noah5CE's user avatar
  • 19
1 vote
0 answers
51 views

Run multiple command in multiple background screen

I have a long-running process command and I am splitting it into 10. This is why I am trying to run 10 commands instead of 1 using screen. If I open the screen manually and run those commands one ...
Devil's Dream's user avatar
-2 votes
1 answer
96 views

Error concatenating directory path in a bash script

I have over-complicated this problem with if/then scripts and super simple one line commands but for some reason I keep getting stumped. I am trying to create a new directory a-e and place the files a,...
tmoney's user avatar
  • 1
1 vote
1 answer
57 views

can user under www-data (PHP) escalate privileges by only knowing root password

The scenario is Ubuntu system with web server: SSH Disabled User doesn't have any terminal access UFW enabled only HTTP and HTTPS allowed PHP and Apache ran under www-data www-data not added to ...
Akam's user avatar
  • 139
1 vote
1 answer
85 views

Ubuntu 22.04 jammy run script on resume

When i wake my laptop from sleep the sound doesn't work but pulseaudio --kill && pulseaudio --start fixes it. I want to run this as a wake up script. A good search reveals that the trick is to ...
fossilised9uhdj's user avatar
0 votes
1 answer
47 views

Autostart with Desktop Entry only works for GUI applications

I am trying to start django with a Desktop Entry file and open a chromium browser in kiosk mode to show a locally served website which shows some weather reports for my area etc ... I put some sleep ...
xtlc's user avatar
  • 103
0 votes
2 answers
56 views

How to return to normal root user

can someone assist, i would like to return to my normal terminal that has $ root symbol. Right now am in terminal with # root symbol saying bash, how do i get back to the $ root
user avatar
0 votes
0 answers
11 views

Is there a WACG color contrast checker for terminal?

I searched and found this post that shows how to install a color contrast checker for Ubuntu (for WACG). However, I want to be able to automate the color-checking process as part of a CI/CD pipeline. ...
Saeed Neamati's user avatar
0 votes
0 answers
33 views

How to run the the latest cli version of Monero?

How would I install v18 of the cli monero wallet? nicholas@mordor:~$ nicholas@mordor:~$ sudo apt install monero Reading package lists... Done Building dependency tree... Done Reading state ...
Nicholas Saunders's user avatar
0 votes
0 answers
40 views

Cannot change working directory in Ubuntu using cd

I'm fairly new to working in Linux so bear with me. I want to run some 16S sequencing data through QIIME2, so I installed Ubuntu on my computer (Windows 11) along with the WSL. I managed to get ...
Faith B's user avatar
0 votes
1 answer
33 views

How to get pythonpath to work for the python module in openmodelica Buildings running Ubuntu 20

I am having problems running my model in openmodelica on Ubuntu 20. I tried exporting the path following the documentation and installed libpython3.8-dev. https://build.openmodelica.org/Documentation/...
Luis Enriquez-Contreras's user avatar
1 vote
0 answers
55 views

Zeek 'command not found: zeekctl'

I installed zeek on Ubuntu, I did this previously on a previous install; but even though I go to the directory /opt/zeek to initiate and run zeek with the command 'zeekctl start', but I am prompted ...
Jess el's user avatar
  • 11
0 votes
0 answers
14 views

Error when running python code with regex: ModuleNotFoundError: No module named 'regex._regex' [duplicate]

I am running this on an ubuntu server, version 22.04. The python version is 3.10. I am working on a local server in Ubuntu, where only PHP (version 8.1.2), phpmyadmin, python, mariadb and apache2 are ...
Minion's user avatar
  • 1
0 votes
0 answers
22 views

How to remove read only default profile in konsole terminal in kubuntu 22.04

Since my upgrade from Kubuntu 20 LTS to 22 LTS, a new "Default read only profile" menu item has appeared in the profiles list of the Konsole terminal. I have set up several other profiles ...
MatChart's user avatar
1 vote
2 answers
69 views

Install Android Studio using a terminal in Ubuntu

I've downloaded the tar file from Android Studio's official site. Now I want to install it using a terminal in the Ubuntu operating system. JDK is already installed and configured. What are the steps ...
waleed's user avatar
  • 11
0 votes
1 answer
14 views

Is there a way to run canonical livepatch on command ie run and check for updates only when i say

I'm currently working on a project that requires me to check for ubuntu patches when the program is executed and I was wondering if there's a way to check and validate if there's a new security patch ...
Adit Verma's user avatar
0 votes
0 answers
78 views

ModuleNotFoundError: No module named 'regex._regex'

I spent the entire night trying to find where my code is breaking, and finally narrowed it down to this. This is the full error message that i received: "Traceback (most recent call last): File &...
Minion's user avatar
  • 1
1 vote
0 answers
43 views

Getting the URL of the curent active tab in Firefox

I'm trying to write a script where I can run mpv [youtube link] to watch youtube videos. For this I would like to detect the current active tab on Firefox and fill in the youtube link with it in the ...
XYZ's user avatar
  • 11
-4 votes
1 answer
131 views

Meaning of command1 | command2 is? [duplicate]

Please give the answer for what purpose we use this command only single '|' Please tell me.
ROYAL WARRIOR's user avatar
0 votes
0 answers
55 views

Help me to develop a .sh script to start a simple task

I want to connect to a server through AtlasVPN automatically. @user: $ atlasvpn connect 1 - Standard 2 - Streaming 3 - SafeSwap 4 - MultiHop *(IT IS NOT ANOTHER LINE)* Enter a number corresponding to ...
Calma Flamma's user avatar
0 votes
0 answers
20 views

Commands are dropping characters after pressing enter in rescue mode terminal

I am having an issue with my graphic card, but that is not the subject of this question. I booted into rescue mode in an attempt to fix my issue, but I am experiencing something I have not seen in my ...
flabbergasted's user avatar
0 votes
0 answers
40 views

Access mtp devices in KDE plasma terminal

I can easily access my galaxy tab on kde plasma ubuntu 20.04 by restarting Dolphin with the address /Galaxy Tab A (mtp). I wish to access my tab(mtp) with kde terminal also in order to perform rsync ...
pasmon 79's user avatar
0 votes
0 answers
49 views

Unable to run systemd service without password despite NOPASSWD in sudoers file

I am running Ubuntu 20.04.6 LTS and added a custom service file for systemd. I want to start/stop it without entering a password. I checked several posts here and on other StackExchange instances but ...
Apollo's user avatar
  • 101
0 votes
0 answers
29 views

Install mongosh on Ubuntu Jammy 22.04 without libssl1.1

If you're using Atlas and want to connect to your cluster from your terminal wget https://downloads.mongodb.com/compass/mongodb-mongosh_1.9.0_amd64.deb Then: sudo dpkg -i mongodb-mongosh_1.9.0_amd64....
edca3899's user avatar
1 vote
2 answers
341 views

Changing a folder name that has a space in it [duplicate]

I need to Change a folder name Word Press into wordpress. It gives an error because I have mistakenly written the folder name in two parts, which is not recognized as one name. What can I do terminal ...
babs's user avatar
  • 19

1
2 3 4 5
441