Skip to main content

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
12 views

MGLTools Segmentation Fault

I'm currently working as an intern for computational chemistry. One of the applications that we need is MGLTools which I installed using this website: https://bioconda.github.io/recipes/mgltools/...
0 votes
0 answers
10 views

How can I access my root directory to save file in ```/etc/environment/``` [duplicate]

while setting up java-jkd-22, I write the code sudo gedit /etc/environment/ in terminal, after authentication, I am getting this message Authorization required, but no authorization protocol specified ...
0 votes
0 answers
10 views

error: externally-managed-environment [duplicate]

sudo pip3 install InquirerPy error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the ...
5 votes
2 answers
3k views

Understanding hexdump '-e' option

I'm trying to understand the formatting option of hexdump. I have read the man page and it says that I can tell it what format to output the data in by using the -e option. However, I can not for the ...
9 votes
4 answers
5k views

How do I edit a manpage?

I want to know if a manpage can be edited. If yes how? (If possible by changing in gedit). P.S.- I want to know if a manpage already written can be edited (just for fun).
1 vote
2 answers
8k views

Problem downloading .deb for libssl.so.1.1

Running Ubuntu 22.04.1 off a usb. Trying to jailbreak my phone with palera1n. The commands worked before but I had to rejailbreak and now after running these commands: sudo add-apt-repository universe ...
1 vote
3 answers
7k views

split a text file to what's before and after a given pattern

I'd like to be able to split a text file to 2 files, such that the 1st output will include all the lines up-to (but not including) a given pattern, if the pattern is in the file, or the whole input ...
1 vote
1 answer
331 views

Terminal is neither showing path nor working

The default terminal and the VS code Terminal are neither showing path nor working. I have updated the system, cleared the cache, reinstalled the terminal, installed the new other terminals, and saw ...
0 votes
1 answer
40 views

How do I change Ubuntu Server wifi ssid and password

I have Ubuntu server on an old laptop which I built at home connected to my home wifi. So this is a portable server and during the course of the day I change location and I need to connect to a new ...
192 votes
4 answers
108k views

Pressing enter produces ^M instead of a newline

For example, if I am tail -fing a file or reading user input, <Enter> will produce ^M in the terminal instead of ending the read or adding a newline to stdout. ^J works fine. I'm sshing into ...
-1 votes
1 answer
27 views

Konsole | How do I make a .json or a .sh file to open a tab with three terminals with root privileges?

I'm working with docker lately, and everything (or almost) you do in docker needs root privileges, and I end up always with the same layout in my Konsole: docker commands | docker logs ...
0 votes
0 answers
14 views

Wine not properly uninstalled [duplicate]

So i installed wine a long time ago, However its pretty heavy so i decided to uninstall it. However, There's still a wine folder in the x86 64 linux gnu Folder: thearchcoder@thearchcoder-HP-EliteDesk-...
0 votes
0 answers
28 views

What to do when it gives a screen like this it needs commands

When I open my laptop it’s just this screen it seems like it wants commands, but I don’t know how to use commands to get to the login screen of my laptop.
0 votes
0 answers
245 views

How can i resolve Invalid value set for options Signed-By regarding source error?

I'm new to Ubuntu, and i think i messed up my repo. Now i see the error E: Invalid value set for option Signed-By regarding source https://repositories.intel.com/gpu/ubuntu/ jammy/production/2328 (not ...
0 votes
0 answers
10 views

How to use SDKMAN tools in a Kubuntu 24.04 linux box like SDKMAN gradle or groovy for instance to be used in desktop operations

Hi I have installed SDKMAN for JDK purpose, but found other tools like Gradle & Groovy. I want to use them in my gradle & groovy operations in my Kubuntu 24.04 laptop. What is the Linux ...
2 votes
3 answers
3k views

How disable programmatically notebook built-in keyboard before login screen

How can I disable a notebooks built-in keyboard - before the login screen. I have a non functioning built-in keyboard on my notebook. In it's current state it types characters randomly. I am using an ...
0 votes
0 answers
35 views

Can I know which is the correct command to upload the file to the Ubuntu server?

I am trying to upload the file using the terminal to the Ubuntu python3 virtual environment but I am below two getting error. 1. If I am not logged in using the terminal and trying to upload a file ...
1 vote
1 answer
7k views

Issue with oh-my-zsh theme not being fully applied

I'm new to both zsh and askubuntu, so please be gentle. :) I'm going through this tutorial and have gotten stuck on the section "Changing Oh-My-ZSH Theme". I can apply the theme by editing my .zshrc ...
21 votes
5 answers
73k views

Terminal not launching in Ubuntu 22.04

For some reason, I can't open the terminal through the shortcut (terminal icon) in Ubuntu 22.04. It works through Visual Studio Code, though, so that makes me confused. I tried using the F keys, but ...
4 votes
2 answers
17k views

How change the font size in Ubuntu Server 20.04 LTS

What I'm trying to do is increase the font size, not change the resolution. I still want my resolution to be 4k, but I want a bigger font size. Is this possible? This is the terminal, there is no GUI ...
2 votes
1 answer
5k views

Cannot exit from login screen TTY1

I was trying to learn how TTY's (teletypes or virtual terminals) in Ubuntu 18.04 work, so I pressed Ctrl+Alt+F1 , and the Login screen showed. According to the post " How do I switch between console ...
385 votes
3 answers
513k views

How do I remove an alias?

I want to remove gs alias from my PC. When I type gs it will open GhostScript. But I checked everywhere in the home directory .alias .bash_aliases .bashrc I also overwrite the gs with my custom ...
92 votes
11 answers
159k views

How to merge multiple (more than two) videos on Ubuntu?

I want to merge videos in batch size of twenty (20) each. I'm running a Linux machine. The videos are in mp4 format and moderate quality. Some even have the audio stream missing. So far I've tried ...
-1 votes
1 answer
46 views

Why does the ls command output in Windows Terminal running Ubunt start with a ''$'\001''?' string in WSL2 using zsh?

I get an encoding issue with the ls command as seen here: When I change ~/.zshrc to have a LC_ALL in UTF8 encoding, the output changes to \001\357\277\275. What do I need to do to fix this?
1 vote
0 answers
32 views

Changing bash doesn't work

I'm using Starship, but don't get the proper changes, and I have to run the command bash just to see the starship terminal. I want this to happen by default. I also have Tmux, when I load that, it ...
3 votes
2 answers
35k views

Generate private key encrypted with password using openssl

I'm using openssl to sign files, it works but I would like the private key file is encrypted with a password. These are the commands I'm using, I would like to know the equivalent commands using a ...
-1 votes
0 answers
16 views

Can´t execute on Ubuntu 22.04 Gnome version 42.9 sh files

I have created a file named Notebook.sh, but when I go to Preferences, I don't have the option Preferences -> Behavior -> Ask what to do, so I cannot directly open Jupyter Notebook by clicking ...
2 votes
3 answers
24k views

Gtk-WARNING **: 22:21:47.873: cannot open display:1 / xhost : unable to open display:1

Sooo, that's the thing, for some reason now I cannot open graphical applications from the terminal, something that is curious to me is that I can launch gedit(for example) from my keyboard shortcut (i ...
1 vote
2 answers
5k views

How to record stereo sound from Line-In in command line?

I have plugged my phones into rear Line-In socket of my computer. I want to use it as stereo microphone, I tried this on desktop and it worked. Now, how can I record sound from it with command line? ...
4 votes
1 answer
4k views

convert svg or ttf to otf, eot, woff

I'm looking for a command line software/script for linux/ubuntu that can help me convert svg or ttf to otf, eot and woff formats. I've tried fontmin,webify, fontforge, eot-utils, sfnt2woff, ttf2woff ...
0 votes
0 answers
79 views

Ubuntu 22.04.2 loads to Command Line fails to Load GUI

After a recent set of upgrades Ubuntu will only load to command line. I have tried loading to older states by booting with Shift and selecting advanced start, without any luck. I have tried to update ...
0 votes
0 answers
25 views

Ubuntu Server Wifi Issues

I am trying to set up an 24.04 LTS Ubuntu server. In the installation GUI, I was able connect to my WiFi. I have added my WiFi information to /etc/netplan/50-cloud-init.yaml file, and added the 99-...
73 votes
10 answers
120k views

How to run scripts without typing the full path?

I'd like to know if there is a way to run program/shell script without typing full path: /opt/idea/bin/idea.sh
0 votes
1 answer
75 views

Putting all strings on the same line

I am trying to find a way to place all names on one line for 100 files. All names in each file must appear on the same line. FILE1 "company":"COMPANY1","companyDisplayName&...
1 vote
1 answer
4k views

How to login to the GUI from commandline

When I boot up, I sometimes go into tty, execute a few commands and then have to restart the GUI (gmd) with sudo service restart gdm I then go to the GUI (Alt+F7) and have to login. Occasionally, ...
-3 votes
1 answer
78 views

script does not work

I can successfully execute this command from the terminal: sudo cp -R -u "/media/gabriela/Windows/Data/Untitled Folder" /media/gabriela/USB But the following script does not work, with the ...
-3 votes
0 answers
52 views

How do I leave the "root" account [closed]

Problem: I am not signed into an account. Can someone help me with this? I have tried to use this: ubuntu config --default-user User but ended up lopsided.
-1 votes
1 answer
91 views

find a file name using command line

I would like to determine the location of a file using command-line. I have tried: find ./tor.keyring I must be missing something here
168 votes
11 answers
237k views

Arrow keys, Home, End, tab-complete keys not working in shell

I have installed ubuntu minimal(mini.iso) on my vm. I then used recovery mode to login as root and create an account with useradd -m admin and then set a password with passwd admin. When I login on ...
-1 votes
0 answers
53 views

Ubuntu 24.04 unable to enable dark theme

I can not enable dark theme on my newly installed ubuntu 24.04. I have tried bunch of techniques but nothing changes. Can I get some help?
6 votes
1 answer
20k views

Ubuntu server 22.04 how do I determine what DNS server is in use from the command line?

I've already read the link here. I tried this from the accepted answer nmcli device status but I get this result sudo: nmcli: command not found. Then I read this link. I tried this systemd-resolve --...
-2 votes
1 answer
29 views

Transmission Remote List magnets/URLs

I use transmission remote terminal command and I want to re-create the current state of my torrent files in other computer using a bash script. I want to create a bash script that will list all the ...
4 votes
3 answers
5k views

Yakuake not responding after hitting F12

I'm using Yakuake (it's a drop down terminal emulator) to manage my terminals and work in multiple terminals, switch between them... First you must launch the application and by clicking on F12 the ...
0 votes
2 answers
130 views

How to use asterisk (*) in bash array

I want to stored all command args in an array but it only works when all args have no any (*). Here is a test without using array: mkdir -p /tmp/hello echo "hello" > /tmp/hello/hello.txt ...
0 votes
1 answer
23 views

"E: Unable to locate package VirtualBox" Error when I try to install virtualbox in command line

So first off I'm using Ubuntu 22.04LTS So I was going off this tutorial on how to install virtualbox https://www.geeksforgeeks.org/how-to-install-virtualbox-in-linux/ and it says to go in command line ...
0 votes
0 answers
26 views

Laptop updating by CMD

Can I fully upgrade or update my laptop by CMD like new Windows, sometimes I am unable to install it from Microsoft Windows and I haven't DVD disk or Bootable USB, So, am I able to do this in an ...
2 votes
0 answers
34 views

Batch Conversion of MP4 to re-encode audio codec to MP3

I have 100s of MP4 videos that were ripped using using WinX DVD Ripper (Personal use only). However after I finished them my Samsung TV wouldn't play them without the sound disappearing ...
2 votes
2 answers
5k 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" In the location bar, it shows media/myuser/folder1/subfoler/ and the selected file name is abc. How can assign the selected (...
1 vote
1 answer
6k views

command line, no desktop environment

I have installed an ubuntu in a computer with windows, but when i open the computer with ubuntu, there's no desktop environment, only a command line. I've even written my username and password on ...
184 votes
6 answers
194k views

How do I increase the size of swapfile without removing it in the terminal?

Is there a way to increase my existing "swapfile" without having to destroy and re-create it? I would like to up my swap space from 1GB to 2GB. Currently it is set up as such: $ sudo swapon -s ...

1
2 3 4 5
459