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

I cannot open anaconda navigator in Ubuntu

Can anyone give me a suggestion to solve this problem? I installed Anaconda in Ubuntu and ran anaconda-navigator but it doesn't work and shows this error: Thanks so much for your help.
0 votes
0 answers
234 views

Find and change Default Start Firefox Ubuntu 22.04

this is my first post here, so apologize for any mistakes. I am creating a script to customize an image of Ubuntu 22.04 and I also need to define the Firefox home page. The first problem is that under ...
2 votes
1 answer
216 views

What's wrong with my use of the netcat command?

I can run this netcat command to listen to ports only when I'm listing a single port, for example: sudo ncat -lp 80 -w 10 However when I attempt to enter multiple port numbers it says the port number ...
0 votes
3 answers
4k views

Is it possible to change the value of environment variable from a bash script so that it persists?

I would like to use an environment variable I have declared in /etc/environment as a counter which should be accessible to several unrelated scripts that are run at different times. Is that possible?...
1 vote
1 answer
4k views

hciconfig Features hex codes

I can't seem to find anywhere what the hex codes listed under hciconfig Features stand for. Does anyone know where I can find a list to show which feature corresponds to which hex code? Output: $ ...
20 votes
5 answers
30k views

Command line archive manager / extracter

I keep forgetting all the corresponding extract commands for every compression format. So I was thinking about writing a script that merely maps file extensions to the appropriate extract command. ...
1 vote
0 answers
16 views

How to make ports listening with the ncat command in a script since i always times out?

This is the script opening multiple ports. However without me doing a single thing it times out after a while. How can i make the scripts stay open indefinitely or atleast for a long time. Would ...
73 votes
7 answers
206k views

Terminal not opening on Ubuntu 22.04 on Virtual box 7.0.0

I'm using windows 10 and I installed Ubuntu 22.04 on Virtual box 7.0.0. When I click the terminal icon, the upper left side of the screen(where is the executing application name view), there is the ...
45 votes
5 answers
8k views

input delay on Terminal Ubuntu 22.04.4

I have been using Ubuntu since Christmas, and just recently I have been receiving delayed input while using the Ubuntu terminal. It especially takes affect when using vim or man commands, which is ...
0 votes
3 answers
1k views

Tilix shortcuts problem

Tilix has a shortcut "Ctrl+Alt+T" to open the terminal in Nautilius (In the currently opened directory), but ubuntu has the default same shortcut "Ctrl+Alt+T" to open the terminal ...
0 votes
0 answers
24 views

Can I enable Wayland sharing from the command line?

Is there any way to enable Wayland sharing from the command line? When I try to access Ubuntu 22.04 LTS with Teamviewer it's blocked because of this popup on the target: Note that removing a monitor ...
0 votes
1 answer
8k views

E: Unable to locate package jasper-lib ( also happened to libpng, and jasper-dev )

Hello so I'm using Ubuntu 17.10 and I needed to install the following to work as a libraries for the WRF software. tcsh jasper-dev jasper-lib libpng libpng-dev m4 the bolded ones got installed when ...
0 votes
0 answers
17 views

virt-manager Error connecting to graphical console

I've had this problem now for several months and haven't been able to find a suitable solution. When searching I find a lot of very old posts about the problem but none seem to related. Mostly talk ...
-1 votes
0 answers
24 views

gio set command don't work for root user

On Ubuntu 23.10.8. I'm trying to do the same as right-clicking on the file and clicking 'Allow Launching' pragmatically in my bash script. And command: gio set /home/myUser/Desktop/"$app_name&...
45 votes
3 answers
74k views

How to umount non-sudo sshfs created directory

I used sshfs without sudo to create a directory like sshfs [email protected]:/media/user/harddrive /temp/user/harddrive but when I want to umount the /temp/user/harddrive directory with umount /...
-1 votes
0 answers
13 views

How to add indic lauage like hindi bengali on ubuntu 22.04

I have already installed wine, .NET SDK & .NET Runtime on Ubuntu. But Indic Hindi.exe file not running on terminal. I also want to run .exe file for Bengali language.
1 vote
1 answer
18 views

Fixing title of xterm even during editing a file inside it

To write a document I need to put a picture that I can capture from the screen. The picture is supposed to have an xterm which displayout uart output during rtl simulation. But I didn't capture it ...
2 votes
3 answers
3k views

Is It Possible To Change the Date of Creation of a File (Docx, Pdf, jpg) from the Command Line?

Let's say I would like to change the date of creation of a file (specially docx, pdf) to back in the past. Is it possible to do this from the terminal.
1 vote
4 answers
3k views

terminal will not load, cant run any commands just blinks can't type

terminal will not load and "if" it does it never loads a prompt ex: username:machinename#, only the windows frame, file menu and a blinking cursor, cant type anything, cant run commands, have no idea ...
0 votes
1 answer
213 views

Need to create csv file from content of another file

I need help in writing a command or shell script that generates a csv file as per below details - My file has content like - + Creates a new NotificationEventMapping POST https://sbc.com:1234/openapi-...
0 votes
0 answers
55 views

How do I call an executable as root without the need of using sudo?

I've created an app that also uses TPM for signing/encryption/decryption (with the tss2-fapi library)... But I am a newbie when it comes to Linux (Ubuntu) permissions. Now, when I am running the app I ...
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 ...
-1 votes
3 answers
842 views

Using Sed to remove part of FASTA file header

I'm new to Sed and want use it to remove part of FASTA file header My headers take the form: CYTC2889-12|HM036578|Homo sapiens and I need them to be: CYTC2889-12|Homo sapiens So far I have (running ...
5 votes
2 answers
499 views

What is the signal sent when the charger is unplugged/plugged

I would like to know which signal is sent to the kernel when I unplug my laptop. I need this information to make a program to switch my power mode automatically. I am currently on Ubuntu 23.10.
0 votes
0 answers
64 views

Command line automaticly new line

Sorry if my english is too bad : in Ubuntu when it starts you have lines line 'cloud-init'..I know it's possible to "ignore them" but having Ubuntu creating the line you are using to enter ...
0 votes
1 answer
590 views

Map "CTRL+ENTER" to another key inside gnome-terminal

Intro Is there any way of mapping CTRL+ENTER to an F-key? (Inside the terminal ofcourse only) I've looked everywhere, I've tried so many things that I can't even recall. I had no luck and so I decide ...
0 votes
0 answers
25 views

Adding ++ctrl+enter++ key combination in bash (to allow for nvim enter key combinations)

I'm trying to make the ++ctrl+enter+ key work in nvim to be able to create a new line above in incert mode without leaving <ESC>oi similar to vscode but the following don't work: keymap("i&...
2 votes
0 answers
63 views

id3v2 reports "No ID3 tag" on MP3 file but VLC shows tags on same file

On my NAS I have a lot of MP3 files ripped from audio CDs I own and tagged with EasyTAG. The tags show just fine when playing the files in VLC. EasyTAG also shows them correctly when opening the files ...
1 vote
2 answers
121 views

Show only selected data in text file without removing any data from it

I have a file with dates (formatted YYYY M DD) and their max/min/avg temperature, alongside with the precipitation for each day. The dates are in the first three columns of strings (1900 9 19 for ...
0 votes
1 answer
5k views

Attempting to Decrypt an AES-256-CBC Encrypted File but Decryption Password isn't known

I am trying to decrypt a password protected file that was encrypted using AES-256-CBC, but the password to decrypt the file has been forgotten. In this simulation, I do know the password is a ...
1 vote
1 answer
85 views

How do I create partitions on Ubuntu Server?

Does anybody know how I am supposed to create a partition? I've tried to create one on SDA, but nothing happens, It just errors out saying: Permission Denied I am using a "Dell PowerEdge R610&...
0 votes
2 answers
50 views

Installing Java

I am trying to install Java. but I am getting following Issue: - I downloaded jdk-8u201-linux-i586.tar.gz from oracle web site. Then I created directories as sudo mkdir /usr/local/java After that i ...
114 votes
3 answers
398k views

How to check available webcams from the command line?

Is there a terminal command that lists all the webcams connected to my computer including the native one? Maybe using the ffmpeg package?
2 votes
2 answers
505 views

What grep pattern allows to print only one-word lines?

I want to print the lines with only one no-spaces subsequences of characters while use grep on the text. title after grepping should to print title the sentence after grepping should not print ...
9 votes
3 answers
12k views

Switching Plasma theme from the command line

I would like to switch between dark and light themes easily (Default Breeze and dark Breeze themes) without having to navigate to System Settings > Global themes > Click on theme > click Apply. So I ...
1 vote
2 answers
173 views

Get first QR code from STDOUT and terminate process

I want to scan a single QR-code and return the result to STDOUT. I discovered ZBar, which is a nice little program that almost does everything I need. $ zbarcam --raw scans QR-codes with the PC ...
1 vote
1 answer
15k views

VIDEOIO ERROR:V4L: Can't open camera by index 0

On a Intel NUC, I have loaded Ubuntu 16.04. I have disabled the desktop module by making changes to /etc/default/grub. The machine boots in text mode. I have a python program that uses Opencv (...
0 votes
0 answers
16 views

I have a problem with the Java path on my computer not being compatible with the bucket dependencies for Gradle Android Studio

Unsupported Java Your build is currently configured to use Java 20.0.1 and Gradle 8.0
-2 votes
0 answers
30 views

Cannot access the serial port of YDLIDAR SDM15 in Ubuntu [closed]

I'm not able to access the serial port for the tool of YDLIDAR SDM15 lidar sensor in Ubuntu. I also tried running the Wine code in root mode in the terminal.
0 votes
0 answers
32 views

Remove docx metadata with Linux command line? [duplicate]

How to delete hidden information (metadata) from a Microsoft Word document (.docx) on a Linux system using terminal commands. Can any suggest me some good tools for that as exiftool not supported docx ...
1 vote
2 answers
2k views

How to change keyboard layout( e.g. QWERTY , DVORAK) in KDE 5 from command-line?

How to change keyboard layout in command-line in KDE 5 , Kubuntu 18.04?
1 vote
1 answer
117 views

Cannot type anything in Terminal

After I have installed 'Google CLI' I cannot do anything in the terminal. I have tried a few solution I found on web to recover, but still without success.
11 votes
7 answers
29k views

WSL2 - VSCode's shell command `code` no longer working in Linux terminal

I am very new to Linux and WSL overall. I was able to use code . to open my current directory in VSCode, but after deleting something that I do not remember it just doesn't work anymore. I put in the ...
0 votes
3 answers
5k views

Cannot use command line Argument list too long

I setup a 16.04 ubuntu webserver through AWS. After installing some programs now when I connect with putty it will not take any commands and after 20 seconds it starts repeatedly throwing the ...
-1 votes
1 answer
51 views

My terminal prompt is "PC%" - How can I fix this? [duplicate]

My terminal prompt looks like this: PC% How can I fix this? Here is picture of my terminal.
0 votes
1 answer
58 views

How do I find files of a certain extension(s) except in paths that contain certain strings and then print the result to a file?

Upon a little search, I came up with this command: > find . -type f \( -name "*.exe" \) | egrep -v > 'games_1|rei|games|tor|jogos|mods|text' > 1 What I wanted to do was find files ...
0 votes
0 answers
69 views

Nmcli and nmtui can't read password for wifi network

Ubuntu 23.10 here. When using Network Manager in KDE, I can connect to the wifi network via the Network Manager applet. Connections are saved with passwords so I don't need to enter a password for ...
157 votes
7 answers
674k views

How to install certificates for command line

So in school we need to install a certificate to access https sites. In firefox, I can import the certificate. However, I can't do so with the command line. For example, running git push I get: fatal:...
4 votes
2 answers
10k views

How to change the background color on a Ubuntu terminal in WSL?

Using Ubuntu 18.04 LTS from the Windows Store and I want to change the background colour of the terminal from black to white. Is this possible?
26 votes
2 answers
104k views

Create a user for samba only (CLI)

Exact same question as Create a user for sharing purposes only but using CLI instead of GUI. I'd like to allow login access to a shared SMB directory, but the users get no other access to the server.

1
2 3 4 5
457