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,293 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
112 views

Problems GUI don't start

I turn on the PC and start on a gnu grub version 2.06 screen. Generally typing "exit" starts the normal graphical interface. But now when I do it, the following screen appears: Ubuntu 22.04....
Tobias Milazzo's user avatar
1 vote
0 answers
72 views

Bash Completions "Mashed" Together

Recently, my Bash completions (assuming that's what you call the results after a tab, tab) have been messed up, returning all the commands, kind of mashed together. For example, typing docker then tab,...
stumpylog's user avatar
1 vote
0 answers
183 views

Set nocompatible not working in vi/vim on 22.04

I have recently installed a fresh copy of Ubuntu 22.04. When I use vi or vim, it defaults to compatible mode (i.e. arrow keys become ABCD). I have tried creating ~/.exrc and ~/.vimrc with set ...
Lexicon's user avatar
  • 339
1 vote
0 answers
53 views

Assigning a certain amount of CPU power to a script

I use the time command in a script to calculate the runtime. But sometimes gzip -4 file is done in less time than gzip -1 file Why is this happening؟ How can I make the CPU power level the same at ...
fsgdfgdfgd's user avatar
1 vote
1 answer
61 views

How to create a Keyboard shortcut to turn on/off HOVER feature of "CLICK ASSIST"?

I'm disabled and use 'click assist', found in Universal Access within settings. I want to be able to turn on/off the hover 'click assist' feature depending on what i'm doing. Is there a command line i ...
Jonathan K's user avatar
1 vote
0 answers
452 views

Flowing errors Snap-Store 23.10

$ snap-store Gtk-Message: 08:16:56.979: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it. ** (snap-store:5155): WARNING **: 08:16:...
Rohan Media's user avatar
1 vote
0 answers
193 views

How to solve "/dev/nvme0n1p3: clean" error?

Once I start my PC I see this line on the top of the screen: /dev/nvme0n1p3: clean Tried Ctrl+Alt+F2 and then sudo apt-get update but it is showing: Failed to fetch http://us.archieve.ubuntu.com/...
Arnab's user avatar
  • 11
1 vote
0 answers
252 views

Attempting to change desktop image in 23.10 using gsettings picture-uri-dark

I am attempting to write a simple cron script that updates my desktop image every 15 minutes using gsettings. However, despite many different iterations, I cannot reliably change the desktop in the ...
Blue Santa's user avatar
1 vote
0 answers
223 views

Launch gui application and replace the terminal on screen then restore to teminal on exit

This might be simple but I cant think of an easy way to create the following behavior: launch a gui app (say gimp) from a terminal emulator (e.g alacritty) have the gui app temporarily replace the ...
SwiftD's user avatar
  • 245
1 vote
0 answers
145 views

memmap boot parameters not getting set correctly

I am trying to reserve memory using memmap boot parameters by following these steps: Run: sudo grub-editenv /boot/grub/grubenv set memmap_val0='1023M\$1M' sudo grub-editenv /boot/grub/grubenv set ...
Kishore's user avatar
  • 11
1 vote
0 answers
145 views

Is it possible to play audio files through the onboard system speaker?

Please don't start throwing "stones" at me, I'm just curious. Is it possible to play an audio file, such as .wav, .mp3, or .ogg, through the onboard system speaker of a machine equipped with ...
Simos Sigma's user avatar
1 vote
0 answers
400 views

Anydesk settings from the command line/edit config files

There are multiple users that will use an Ubuntu Desktop 22.04 hosted on a virtual machine. I already have X2Go and but I want to switch to Anydesk. I've installed it through X2Go but Anydesk does not ...
Tavi B's user avatar
  • 11
1 vote
0 answers
250 views

starship cannot access/edit starship.toml

Whenever I try to import a starship.toml file by typing starship preset tokyo-night -o ~/.config/starship.toml I get the following error: Error writing preset to file: Permission denied (os error 13) ...
maze's user avatar
  • 11
1 vote
0 answers
234 views

Shell color theme vs Terminal theme

Could someone explain how terminal and shell work in terms of theming? Shell frameworks, like oh my zsh, allow you to change color theme. However, terminal emulators, like Blackbox, also allow you to ...
mnj's user avatar
  • 203
1 vote
0 answers
63 views

Can't access magic SysReq via keycode 99

I am running Kubuntu (22.04.3 LTS)* and in following this answer to a related question, I found a key on my keyboard via showkey -s in TTY (ALT+F2) that was interpreted by my machine as 0x99 (in my ...
DiogenesOfMiami's user avatar
1 vote
0 answers
423 views

DXVK doesn't install in wine prefix

i recently installed spitfire audio app using wine. The app has graphical issues. i was told to install dxvk, but when i did, winetricks returned this error: Executing cd /home/USERNAME/.wine/...
Josiah's user avatar
  • 11
1 vote
0 answers
77 views

rsync does not include some files

In order not to carry all the hidden home folders in the backup, I excluded '.*' in the exclusion file. But now there are some files, which are inside some subdirectories of the hidden directories, ...
CaneRandagio's user avatar
1 vote
2 answers
44 views

Need to find a high level log if one exists

I have an Ubuntu desktop server that is accessed by multiple people remotely. I need to locate a high level log file that shows, at a minimum, the date/time, username, and system action. System action ...
Mike984's user avatar
  • 21
1 vote
0 answers
1k views

Allow user to run specific commands

How do I enable a user to run specific sudo commands without the need to type a password? I already tried the following: I have a script /usr/local/bin/perform-update with the rights -rwxr-xr-x 1 root ...
Socrates's user avatar
  • 2,493
1 vote
1 answer
639 views

How to auto-restart a Python script sometimes?

I have a long running tool I’ve written. It, unfortunately, isn’t super reliable and sometimes crashes. I’ll call it myscript.py. I run it with a launcher script called launch, which sets some env ...
cocomac's user avatar
  • 3,414
1 vote
1 answer
260 views

My 22.04.3 LTS starts in console mode

IAC: Earlier today, I noticed an "icon" (do not enter) which when "hit" told me I had some broken packages. I followed along - and started a package update process. I left the room ...
DrTSPC's user avatar
  • 67
1 vote
0 answers
62 views

(auto)mount in a command line installation at plugin of USB-drive

This is what I need for my command line installation: I have neither keyboard nor monitor on that server, so I can't and don't want to issue any command at reboot/plugin. On my GUI-installs, this ...
udippel's user avatar
  • 187
1 vote
0 answers
66 views

how to perform commands from the "login shell"

I noticed that several programs (ie webstorm) run with their own manager, and thus through the login shell (running through the jetbrains toolbox to manage versions and updates smoothly), which I ...
paul23's user avatar
  • 343
1 vote
0 answers
578 views

how do i write a script to activate a conda virtual enviornment?

I have a conda virtual environment where I run code for voice processing. I want to write a script so that I can open a shell in this virtual environment to listen for commands. I can launch the ...
j0h's user avatar
  • 14.8k
1 vote
0 answers
97 views

Terminal (any one) losing lines after scrolling back on Ubuntu 22.04

I am having some troubles with Ubuntu 22.04 on an Acer Nitro 5 core i7, specially one annoying is that I cannot have a reliable scroll back listing because the terminal simply loses some lines, ...
user avatar
1 vote
0 answers
549 views

How to run softmodem for OpenAirInterface (OAI) 5G SA on bladeRF A4

I have a problem using bladeRF A4 to make OAI 5G SA I use Ubuntu 22.04.2 LTS (Jammy Jellyfish) Desktop, on 5.19.0-46-generic. I try OAI on the develop branch and run on bladeRF A4. I follow this link, ...
mimm's user avatar
  • 11
1 vote
0 answers
1k views

Extreme lag while typing in ubuntu's terminal or text editor

Okay so, i have a laptop that is dual boot with ubuntu lunar lobster and windows 11. Ubuntu has been working all fine since forever. I was recently using centos on vmware on ubuntu. and all of a ...
Mr Moon Knight's user avatar
1 vote
1 answer
32 views

In Ubuntu 22 how to replicate terminal colour scheme from Ubuntu 16

I liked the colour scheme of the terminal window in Ubuntu 16 and want to setup my newly installed Ubuntu 22 to the same ... but the colour schemes listed under preferences don't seem to do it.
DrFlute's user avatar
  • 11
1 vote
1 answer
2k views

Shell prompt in tmux session is much slower and sluggish

Why is it that in shell prompt in a tmux session, it is significantly slower and sluggish than plainly in terminal with bash? Even for just having a new line of prompt, i.e. hit Enter to execute ...
HELP ME's user avatar
  • 191
1 vote
1 answer
132 views

Terminator: disable middle click closing the tabs

I want to stop Terminator (Ubuntu-22.04) to close the current tab if i middle click on the tab title. I often close the tabs accidentally when there is a process running in the current tab. I am using ...
Ajaib Singh's user avatar
1 vote
0 answers
178 views

Vim/NVim shows a weird character at cursor in terminal for comment lines

I am using Ubuntu 23.04. I don't have a custom .vimrc; I am using the system default. EDIT: The following paragraph applies to only commented lines i.e. those beginning with a #. Non-commented lines ...
Arun Sreelalan Iyer's user avatar
1 vote
0 answers
601 views

Run sudo commands in Java

I am trying to run sudo commands in Java. I have trying to create a program in Java in order to execute nmap commands in it. I am using Java 20 and I am using ubuntu 22.04 as operating system. I am ...
ilie alexandru's user avatar
1 vote
1 answer
102 views

cannot identify xdg-open behaviour for console application

I have created file association for a console application which accepts inputs from stdin and gives output at the stdout. It works normally when I run the application from the terminal using ./myExe. ...
Vipul Gupta's user avatar
1 vote
1 answer
620 views

Firefox won't run on Ubuntu 22.04

When I click on the Firefox icon it seems to work because the little wheel appears and revolves. However, it soon disappears then nothing else happens. When I go into the terminal and ask which ...
Andrew's user avatar
  • 11
1 vote
0 answers
74 views

Enable close window warning for gnome-terminal

When I run a command in gnome-terminal to install a critical software using sudo priviliges, for example sudo apt install blender and I accidentally close the window by pressing the close button, I ...
baalkikhaal's user avatar
1 vote
1 answer
248 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
1 vote
1 answer
10k 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 vote
0 answers
294 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
1 vote
0 answers
1k 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
1 vote
0 answers
90 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
  • 11
1 vote
0 answers
228 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
1 vote
0 answers
30 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
1 vote
0 answers
439 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
1 vote
0 answers
1k 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
1 vote
0 answers
252 views

Firefox snap unable to open webpages via command line if Firefox is running

I installed the Mozilla Firefox ESR snap using sudo snap install firefox --channel=esr/stable. When Firefox is not running, firefox 'https://askubuntu.com' successfully opens this website in Firefox. ...
Flux's user avatar
  • 505
1 vote
1 answer
530 views

Error while using create-react-app

During an attempt to install create-react-app on my os (unbuntu 22.04), I got this output from the terminal. t*****@poudlardo:~$ sudo npm -g install create-react-app ERROR: npm v9.6.4 is known not to ...
Poudlardo's user avatar
1 vote
0 answers
248 views

Find command works in terminal but not in automatic shell script

I am writing a script that automatically copies sqlite files from my computer to a USB stick whenever the stick is inserted. It makes a new directory on the USB that takes the hostname of the computer,...
John Tate's user avatar
1 vote
0 answers
5k views

Black screen AFTER login on Ubuntu 23.04 with Nvidia graphics and command characters dropping from command when entered

I may have more than one issue, so let me know if I need to create a separate question for one of these issues. ** Update: June 25, 2023 I ended up re-installing Ubuntu 22.04. It took several attempts ...
flabbergasted's user avatar
1 vote
0 answers
375 views

How do I boot to terminal - cannot start 23.04 on Hyper-V?

I have just updated two 22.10 VMs to 23.04. Both VMs reported completing successfully, but I can only access one of them. With the other one the GUI is not accessible. This is noted here as a but ...
ArchieL's user avatar
  • 11
1 vote
0 answers
417 views

Ubuntu 23.04 terminal loading

When opening ubuntu 23.04 terminal is too slow loading. also my pc first installed 22.04 and then upgrade to 22.10 lastly upgraded 23.04.
hmze ahmd's user avatar

1
11 12
13
14 15
86