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.

4,291 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
986 views

How to change the position of the terminal window in Ubuntu 22.04 - gnome-terminal --geometryCxR+X+Y does not work

Since I got Ubuntu 22.04 a few months ago, I wanted to know about how to specifically place different terminal windows in specific places on my second screen... until, eventually, I found the --zoom ...
Camilo Febres's user avatar
1 vote
0 answers
276 views

Whiptail menus not responding to key presses or mouse clicks - displays ```^[[B``` when I press down arrow

I have created an installer bash script for setting up a DigiByte full node via the linux command line. It works fine in Raspberry Pi OS lite 64-bit on the Pi 4, but if I install Ubuntu Server 64-bit ...
saltedlolly's user avatar
1 vote
0 answers
99 views

How to run gcore command in runtime

I want to run gcore command in runtime. For example; Lets say I have a script called "manuel", I want to run gcore and gcore command will detect if any script runs in my shell. It will ...
Eyüp's user avatar
  • 11
1 vote
1 answer
1k views

How can I add right-click option (context menu) on Brave, Chrome, Opera, Firefox browsers to play YouTube videos in MPV?

I use Chrome based-browsers (Brave, Opera) and Firefox. My OS is Ubuntu 22.04. I use this terminal command to play YouTube videos in MPV player: mpv --ytdl-format="bestvideo[height<=720]+...
Lord Yasha's user avatar
1 vote
0 answers
518 views

Detect when the current song changes on Spotify

I'm working on a small personal project that involves getting the current Spotify song data. The getting the metadata part is all figured out but I just need a way to detect when a song changes, like ...
Sophia Leal's user avatar
1 vote
1 answer
142 views

Copying folder with ignore list throws error when path is in variable

I just want to copy a folder by omitting some content. So that works: copy /stuff dir and omit foo and moo folders inside of it cp -r ./myDir/stuff/!(foo|moo) "$destination" and that doesn'...
Bat Man's user avatar
  • 111
1 vote
0 answers
2k views

R installation on Ubuntu, how to fix this error message?

I'm quite new to Unix systems and I just can't understand why I'm having this problem during the installation of R on Ubuntu 20.04 focal fossa. I have installed R using the following procedure: ...
Marco's user avatar
  • 11
1 vote
0 answers
948 views

Launching kmymoney through command line:Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway

I have just installed kmymoney on ubuntu 220.4 LTS thourgh following command line sudo apt-get update -y sudo apt-get install -y kmymoney reboot After reboot, when I tried to launch it through command ...
Phil Ossefer's user avatar
1 vote
0 answers
1k views

SGX disabled by BIOS ? Can't access terminal

Noob here, bear with me. I updated my Ubuntu version a couple of days ago, then got a "critical error - immediate abort" when typing in my password. Upon booting I notice this message ...
Chanto's user avatar
  • 11
1 vote
0 answers
227 views

What is the first line of the output of `ldd bash` and why is not required when setting a new root directory to use with chroot?

I am following a tutorial about how to use chroot and set up a jailed dir. The process is to copy bash and the libraries it depends on into the 'jail' dir. To find the libraries bash depends on I ...
stanley's user avatar
  • 231
1 vote
0 answers
208 views

please explain e4defrag output

can anyone please explain to me what the failure means in the following output of e4defrag run from terminal in Linux? Success: [ 353/410 ] Failure: [ 57/410 ] this is the ...
gamer92144's user avatar
1 vote
0 answers
36 views

Removing a set number of random character from multiple files

I have multiple file like those: test01 - checking - Heart-ta-mPFnno34-192K-1651117354964.txt test01 - checking - Hard-ta-mPFnno34-192K-1651117354965.txt test01 - checking - Strong Blur-ta-mPFnno34-...
THEdarkkman's user avatar
1 vote
0 answers
2k views

No such file or directory even the file is exist

I installed an emulator in my ubuntu which is rpcs3 then after I make it executable and try to execute this shows. bash: ./rpcs3.AppImage: No such file or directory Full log: root@localhost:~# cd ./...
Nino Nakano's user avatar
1 vote
0 answers
27 views

Ubuntu 20.04 now 21.10 reverts to CLI on it's own

The gui on my laptop shuts down on its own and I'm taken to this screen. This happens when I stop a key binding after pressing ctrl ket only(usually while opening terminal). But today it happened when ...
Priyanshu Sahani's user avatar
1 vote
0 answers
309 views

Git returns error when started from cron

My ubuntu's cron runs a PHP script as www-data to collect statistics by executing git diff --shortstat, it has been working for a month or so, however, starting 2 days ago, no results were returned. ...
bilogic's user avatar
  • 233
1 vote
0 answers
280 views

Ubuntu Server (20:04) command reboot with '-p' option does not work as expected

About the reboot command, according with: focal (8) reboot.8.gz Indicates: -p, --poweroff Power-off the machine, regardless of which one of the three commands is invoked. practically ...
Manuel Jordan's user avatar
1 vote
1 answer
279 views

Change password via BASH script using UID

I've created a post-installation automation BASH script for Ubuntu installations. The last thing I want the script to do, is to set the password of UID 1000's password (the user I've created while ...
PenguinCSC's user avatar
  • 1,444
1 vote
0 answers
2k views

In terminal SSH typing delay

when i'm connecting to a remote PC via terminal and ssh, sometimes the screen freezes, taking some seconds do show what i'm typing. Tried to connect via ethernet but still happens. Any hints?
Marcos Scalabrin's user avatar
1 vote
0 answers
453 views

Fontconfig error: "/etc/fonts/local.conf", line 19: mismatched tag

I've noticed this error when I try to run some commands from terminal. For example ~ ❯❯❯ emacs --debug-init Fontconfig error: "/etc/fonts/local.conf", line 19: mismatched tag Fontconfig ...
Gabriele Della Vecchia's user avatar
1 vote
0 answers
29 views

error installing ruby

I am getting this error: $ sudo apt-get -y install build-essential git zlib1g-dev liblzma-dev libpq-dev \ libssl-dev libreadline-dev libsodium-dev file Command 'sudo' is available in the ...
Ciarán Murphy's user avatar
1 vote
0 answers
1k views

Disable screensaver from command line in Lubuntu

Is there a way to disable Lunbuntu 20.04 LTS's screen saver from the command line? I know that it can be disabled via the system menu Preferences -> Screen Saver and the associated dialog box. I ...
tinlyx's user avatar
  • 3,230
1 vote
0 answers
93 views

How do you remove the top bar from Ubuntu terminal?

I was wondering if there is any way to remove the top bar on ubuntu's terminal for a cleaner look, Does anyone knows how?
user avatar
1 vote
0 answers
2k views

How to avoid "Bad Escape Character" passing variable to SSH?

I have a string variable passed in from the command line that I want to use in SSH. #!/bin/bash while getopts ":b:e:" arg; do case "${arg}" in b) b="$OPTARG";; ...
usr_tt's user avatar
  • 11
1 vote
1 answer
404 views

Cannot Set Default Geometry in Gnome Shell Terminal With .desktop File in Ubuntu 20.04

I want to configure the terminal so that new windows launch on the bottom left corner of the screen. Based on this issue I tried copying /usr/share/applications/org.gnome.Shell.desktop to ~/.local/...
decon_structed's user avatar
1 vote
0 answers
94 views

Show more snap install info in command line?

When I install Snap packages via Terminal, it doesn't show my that much info. I want to see more information, such as dependencies installed, etc. Also, I don't like it that after it displays ...
AlexFullinator's user avatar
1 vote
0 answers
27 views

Terminal error information right before sleep

I run Xubuntu 20.04 and I'd like to know how to gather that terminal data that appears before the splash when turning on the computer, and especially the terminal data that shows up for like 125 ...
Filipe Rodrigues's user avatar
1 vote
0 answers
2k views

Alacritty Color Schemes Not Working

Color Change for Alacritty Terminal not working. Usually it works by just changing a configuration file and saving. This started occurring after I used this command: LS_COLORS=$LS_COLORS:'di=0;35:' ; ...
user avatar
1 vote
0 answers
151 views

Find files from timestamps

I have a lot of files, of which I need to show only those created in the last 3 hours, and sort this list by date. I tried to do it with the following command: find /root/shell/copy/ \( -type f -mmin +...
Par4o's user avatar
  • 11
1 vote
1 answer
267 views

Different CMAKEs, unable to remove one of them

I have two cmake commands, one has a path /usr/local/bin/cmake, which I would like to uninstall. I tried running apt remove cmake but it gives Package 'cmake' is not installed, so not removed. The ...
A J's user avatar
  • 41
1 vote
1 answer
43 views

Appearance of Terminal and Nautilus in RDC

Hi Folks: When I first set up my ubuntu system, and was using the local screen, keyboard and mouse, the terminal window and nautilus both had really good looking themes on them. The machine is ...
Tim Holmes's user avatar
1 vote
1 answer
2k views

Ubuntu laptop boots in EFI Shell instead of OS

starting up my laptop this morning running Ubuntu goes directly into EFI shell. Not sure what this failure might be. I have reset a few times and gone into the Boot Manager to see anything unusual in ...
mortirolo's user avatar
1 vote
1 answer
8k views

How to run Timeshift from command line

I'm struggling a bit with running Timeshift from command line. My disk structure look like this: sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 512M 0 part ...
Tom Widerøe's user avatar
1 vote
1 answer
1k views

Trying to change Mac address with MACCHANGER upon every restart, does not work

Im new to Linux! I want to change my MAC Address automatically every boot up, the issue is I cannot follow the already existing tutorials on this since my system does not work with those. Online ...
Wheaton Keensmeer's user avatar
1 vote
0 answers
595 views

Is there a way to run WSL AND a vm?

I'm using WSL to run code on my windows machine and whilst it works, I'd really like to have a full ubuntu desktop environment so I can use command line tabs for example as well as unlocking all of ...
Roberto_1986's user avatar
1 vote
0 answers
135 views

Why a raw listening socket on port 255 keeps opening up and closing in random interval?

A random listening raw socket keeps opening up and closing in random intervals on port 255. Running "ss" in the shell with this line, when I was testing for something else : sudo ss -eoinlp ...
cabonamigo's user avatar
1 vote
0 answers
149 views

command-line z-base-32 encode/decode

Is there any command-line utility that can encode content using z-base-32? (described in RFC6189 point 5.1.6, see also wikipedia info) it seems base32 cannot do it and googling has not helped either. ...
morgwai's user avatar
  • 249
1 vote
0 answers
72 views

Can no longer write to my external hard drive

I have an external hard drive mounted to my /home directory. It worked perfectly since day one. But I haven't touched it in a while and for some reason it won't let me transfer files to it via FTP. ...
Ox3's user avatar
  • 11
1 vote
1 answer
2k views

Not able to install 'slack' through snap

While installing slack from snap store using the command line (sudo snap install slack --classic), I get the following errors. Please help me resolve this. error: cannot perform the following tasks: ...
Ujjwal's user avatar
  • 43
1 vote
1 answer
604 views

I want to remove this terminal bar, Ubuntu 20.04

I am Using Ubuntu Desktop 20.04 and would like to remove the top bar that sits above the Terminal window: I tried to remove "Terminal bar" through settings, but didn't see anything that ...
epeu's user avatar
  • 11
1 vote
0 answers
558 views

Sending SMS to multiple numbers at once

How can I send SMS to many numbers at once command via my huawei modem from my laptop, I found the command mmcli as my best solution, sending one sms to one number is working fine, but once I tried to ...
khelili miliana's user avatar
1 vote
1 answer
68 views

missed username during login

Tried to install oh-my-zsh in Ubuntu 20.04 - without success. I rolled back all changes and switched to bash shell, but somehow I missed my username from startup. Previously, I had my username pre-...
Yevhen Dmytrenko's user avatar
1 vote
1 answer
3k views

Make Screen Sharing Active at Ubuntu 20.04 using CLI

I want to build a script that will make the "screen sharing" through CLI (I have to do it on a lot of computers in the future and I want to add such script to another scripts that will ...
mkdahan's user avatar
  • 31
1 vote
0 answers
2k views

How do I prevent broadcast messages to console for specific application?

I am running NUT UPS Tools server on Ubuntu 20.04.3 LTS system. I have to resart the NUT driver every 15 minutes, and each time it restarts the upsmon application broadcasts a message to the console: ...
SomebodySysop's user avatar
1 vote
0 answers
364 views

Untar failed due to compressed data--format error?

I've been trying to untar this file for several days now, and every time I try it again it ends up corrupting the file and creating corrupted files and directories. I have tried reinstalling tar and ...
Mr. Goose's user avatar
1 vote
0 answers
15 views

Network activity for user freezes after user change

I have a persistent problem lasting in several Kubuntu versions: I'm using 2 users on my computer to separate their histories and configuration. To switch users I change X terminals using CTRL+ALT+F1 ...
Soul Trace's user avatar
1 vote
1 answer
3k views

Delete files from root owned folders without sudo

There is an application that creates logs owned by root user (this cannot be changed, at least in my work environment) in the directory logs: This app is executed through a docker-compose and ...
Javier Lopez Tomas's user avatar
1 vote
0 answers
1k views

ls -a or ls -lR shows empty result

at my /usr/local/lib/python3.8/dist-packages, I run sudo ls -a and it shows empty: $ sudo ls -a . .. With ls -lR it also shows empty: $ sudo ls -lR .: total 0 But there is actually stuff there when ...
Phạm Huy Phát's user avatar
1 vote
1 answer
197 views

Command meaning of the command (nl /etc/passwd | tail -n +25 )

What is the meaning of this command? nl /etc/passwd | tail -n +25 Thank you.
Patrick TSHABA's user avatar
1 vote
1 answer
10k views

Problem to run "anaconda-navigator"

I was not able to run the command anaconda-navigator, so I followed the following procedure: $ source ~/anaconda3/bin/activate root $ anaconda-navigator After this, Anaconda Navigator opened, but ...
Gian Victor's user avatar
1 vote
0 answers
2k views

How env var is resolved in distroless container?

I am using a distroless container for my app and normally I start my app as follow: java -jar $ARG1 $ARG2 app.jar In distroless image I gave only CMD ["app.jar"] Args are predefined env ...
celcin's user avatar
  • 111

1
13 14
15
16 17
86