2022 Developer Survey is open! Take survey.

Questions tagged [command-line]

Questions about using the command-line interface (CLI).

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

Arguments for make

I know you can pass arguments like parameters, for example, make foo=bar. I am wondering if I can do this with only one argument, without the variable. For example, this is what I would like to do: ...
user avatar
0 votes
0 answers
20 views

How to change script for deleting files while names misses symbols?

I am trying remove files by names according this answer How to delete files listed in a text file But get following error: rm: cannot remove 'var/Resources/Images/fd29d33d.jpg'$'\r': No such file or ...
user avatar
  • 131
1 vote
0 answers
34 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: ...
user avatar
  • 11
4 votes
1 answer
180 views

List windows on command line

I am interested in finding a window information from command line. The xprop command gives good results, however it requires that I either know the window id or select something using the mouse. What ...
user avatar
0 votes
0 answers
14 views

Ubuntu Server 20.04 running in a VM in proxmox missing storage

So I'm really new to VMs and linux in general, I wanted to setup an old pc as a mini home lab with media functionality. In my Linux vm I want to run radarr but it only has access to a 100gb of storage ...
user avatar
0 votes
0 answers
42 views

Failed to execute child

I made some sort of error trying to install software. Now my terminal is stuck with this error message How can I clear it to use it again? I can't type anything in terminal. I think I found which ...
user avatar
0 votes
0 answers
11 views

Stop GUI when logging in as a specific user in Lubuntu 20.04 (LXQt)

I have a very limited and rusty knowledge of Lubuntu, and it is my first post here - so please bear with me if the question is obvious, if I break any etiquette rules, or if I am simply not providing ...
user avatar
  • 1
0 votes
1 answer
37 views

Is there a way to keep Zenity open after preforming my shell script?

I have made a zenity list that opens up the terminal to run a shell script but after it is ran zenity closes is there a way to keep zenity from closing? Here is my script - #!/bin/bash zret="$( ...
user avatar
  • 1
0 votes
2 answers
37 views

Creating an html from the output of awk script

I am performing in an awk script a series of aggregations from a dataset and I get the following. Now I would like to create an html that collects this previous output in the form of a table and that ...
user avatar
0 votes
1 answer
60 views

Why is there a $ in some directory names?

On this openfoam tutorial page it instructs me to create the directory: mkdir -p $FOAM_RUN ubuntu gives me the error: mkdir: missing operand Try 'mkdir --help' for more information. When I remove ...
user avatar
  • 115
0 votes
1 answer
7 views

Prevent terminal from opening up as maximized/full screen

I customized my terminal a little to display an ansi banner when I opened it. But, seemingly randomly, it started opening as full screen. Is there any way I can prevent this/disable it?
user avatar
0 votes
1 answer
37 views

error trying to redirect output of awk script to a new file

I am working on the following code in an awk script and I need the output to be redirected to another file within the same script. What I try to do in the first block is to round the decimals of the ...
user avatar
0 votes
0 answers
14 views

How do I permanently change the "--" option for running a programm (Spotify) graphically? (KDE)

I just started using Kubuntu today and I wanted to use spotify. I tried multiple ways of installing it and every time it just closed after I opened it. I ended up installing it via apt. I figured out ...
user avatar
0 votes
0 answers
15 views

Cant trace sed error

My code is big so i will share the github link here: https://github.com/troopek/TropX Clone it and run the main.sh file with bash, then to recreate the error you will type in 2 and enter in the cli ...
user avatar
0 votes
1 answer
22 views

how to make a bash script that will autofill the words in given statement one by one?

this is the statement sudo update-alternatives --install "/usr/bin/word" "word" "/usr/lib/jvm/jdk1.8.0_version/bin/word" 1 where word needs to be replaced ...
user avatar
0 votes
1 answer
24 views

check for matching records in a dataset with a regex using a loop

I need to create a loop in bash that iterates over a file in order to check that each record matches the following regex, keep the ones that match it and redirect all the ones that match it to a ...
user avatar
0 votes
1 answer
14 views

Delete all lines from a line with certain string until another line with a diffrent string in a file

file.txt: start some text works "HELLO" foo test sum other end start som "other" line with text 'also' thing foo end and I want to delete the line in which "HELLO&...
user avatar
0 votes
1 answer
28 views

How to autorun .sh

I have a game server that I would like to manage restarts automatically Currently I am doing this to run the server screen -dmS screenname // create a new screen screen -xs screenname // attatch to ...
user avatar
0 votes
0 answers
12 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 ...
user avatar
2 votes
3 answers
252 views

How to find number of unique words in first row using bash command?

I want to find the number of unique words in my file named cdj.tsv. I can use head -n 1 cdj.tsv to get the first line. Now I want number of unique words in this line. How can I get that? Result of the ...
user avatar
  • 39
1 vote
1 answer
58 views

moved /usr/bin to Downloads/

I accidently moved my /usr/bin/ folder to Downloads using the following command. sudo mv /usr/bin/ Downloads/ I saw a similar problem like this here But that doesnot work, because I don't have access ...
user avatar
0 votes
0 answers
36 views

yt-dlp Permission denied error

Because of slow speed on youtube-dl and after reading this discussion I am trying to use yt-dlp (current version : 2021.12.27). But when I run yt-dlp https://youtu.be/qIX1BhvUMJ0 I am getting error. ...
user avatar
2 votes
2 answers
90 views

Ubuntu 22.04 LTS: Starting firefox through terminal Error "cannot change mount " & Failed to load module "canberra-gtk-module", How to solve it?

System information: Computer Summary Ubuntu version: philossefer@dell:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 ...
user avatar
0 votes
0 answers
11 views

Installation of Microchip MPLAB X IDE v6.0 using terminal interrupted by accidental closure of terminal - 2022 May

Ubuntu 20.04.4 LTS running on AMD 64 bit processor. I had started the installation process within the terminal, a process I am familiar with as all previous versions of MPLAB X IDE have been installed ...
user avatar
0 votes
0 answers
18 views

Someone changed my screen mode in the terminal and now I can't scroll up

Very noob question - I'm new to coding/ubuntu/bash. My supervisor ran some commands in my terminal for some data processing, and now my scroll bar is disabled and I cannot move upwards or scroll. I ...
user avatar
0 votes
1 answer
17 views

Terminal does not remember "brew" after exit

I installed Brew for Ubuntu, like on their website. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Then i add the path: test -d ~/.linuxbrew ...
user avatar
  • 1
0 votes
0 answers
21 views

Can't log into terminal

I am completly new to linux and want to install a graphics driver but to do so i have to stop X-server. So my problem is i cant sign into the terminal wich you can acses with ctrl+alt+f3. The pasword ...
user avatar
0 votes
0 answers
12 views

"Out of Range" screen resolution issue

Alright so, I'm stuck on "out of range" when I try to log in. My resolution needs to be at 640x480x32 according to videoinfo in command line. Using command line I have tried using xrandr and ...
user avatar
  • 1
-1 votes
0 answers
17 views

How to autologin in tty1?

Linux noob please help. On Ubuntu 22.04 LTS. Tried guides on Google but they seem to be outdated.
user avatar
  • 1
0 votes
0 answers
22 views

ssh to zsh (remote server) : what caution to take before to operate?

When opening my terminal, I am prompt to change default interactive shell from ssh to zsh, and I would not hide from you that this operation is a little frightening to me. /// Q1 /// Should I expect ...
user avatar
  • 1
0 votes
1 answer
30 views

How to create json with file name, size and number of chunks in a directory?

I want to create json holding file name, file size and number of 1000byte chunks each file is divided into eg:I've some txt files, at "/home/anudeep/source" are afile.txt bfile.txt,cfile.txt,...
user avatar
  • 1
0 votes
0 answers
13 views

Kitty bell stopped working after switching to pipewire

I'm on Ubuntu 22.04. Recently switched from pulseaudio to pipewire. So far everything works well. Bluetooth headset is working, output sample rate up to match my DAC, mic echo cancelling enabled with ...
user avatar
  • 71
0 votes
0 answers
44 views

File opening only with ./ [closed]

I have a file that i want to print in the terminal. I used cat name-of-the-file but it didn't print the file, it kept the terminal blank. Then i used this command cat ./name-of-the-file and it printed ...
user avatar
  • 13
0 votes
0 answers
30 views

Tried to install vpn, Wi-Fi internet doesn't work anymore

It says traffic blocked, waiting for termination signal. How do I do that? I'm on mobile sorry for the bad format. The moment I entered sudo ./hide.me@free-unlimited-us is when my internet stopped ...
user avatar
0 votes
0 answers
40 views

TAB completion not working for mounted partition

I'm used to mount a Windows partition (E) into my Windows Subsystem for Linux (running Ubuntu 20.04) by giving the following commands: sudo mkdir /mnt/e sudo mount -t drvfs E: /mnt/e Unfortunately, ...
user avatar
0 votes
0 answers
22 views

Confusing CPIO problem copying filesystems

For decades, on many Unix variant, I used the following to backup. find /source/directory | cpio -dumpv /destination/directory Lately on Ubuntu, this fails in a strange way: Instead of creating the ...
user avatar
0 votes
0 answers
19 views

at run time to communicate between terminal [closed]

I Want to communicate between two terminal at a run time using termios.h, if user want to in first terminal ls command and then the command will be executed in the another terminal is it possible ...
user avatar
  • 1
0 votes
0 answers
31 views

Searching text from a list in another file

Is there a grep-like program for Ubuntu that can search a text file, or batch of text files in a folder, for any occurances of words in another text file or a list like a csv file or an ods file or ...
user avatar
-3 votes
0 answers
14 views

Help with my sandbox using ubuntu [closed]

please I need help on how I can change my command line from super user to # to standard $. Thanks
user avatar
  • 1
0 votes
1 answer
16 views

Is there a way to view the message-id (msgid) when receiving email using the Linux mail command?

0 I have a program that extracts email from the command line using the mail command as follows: The Message-ID/msgid is not part of the resulting email Is there a way to keep the message-id when ...
user avatar
  • 1
0 votes
0 answers
29 views

Potree on Ubuntu

I've been trying to install Potree on one of our Ubuntu 18.04 servers I've followed the instruction here https://hub.docker.com/r/synth3d/potreeconverter/ I'm stuck at this point cmake .. -...
user avatar
  • 1
0 votes
0 answers
63 views

Applications close unexpectedly after a few minutes [duplicate]

I recently started using Ubuntu and I am facing a weird issue. Whenever I open applications, they close unexpectedly after a few minutes. The affected applications are vscode, terminal, and chrome ...
user avatar
0 votes
1 answer
17 views

Error installing gtop on Ubuntu 22

I just installed ubuntu on my work machine and trying to get gtop working on it. It's saying I'm missing the node:process package, but I'm not able to find any solutions. I figured that the easy ...
user avatar
0 votes
0 answers
36 views

How to enter your password in terminal to run program [closed]

I am trying to run a program on my laptop but every time I try to enter my password in terminal.
user avatar
0 votes
0 answers
54 views

bash script for grep with context

Am writing a bash script that uses grep to search phrases and prints them on terminal. I want the user to have the possibility of using the context options of grep (-C, -A, -B). I made an indexed ...
user avatar
  • 27
0 votes
1 answer
69 views

Shell scripts with table

I want to run a cron job monthly, weekly, daily but in everyday the hours and minutes will be changed as shown in the below table. So, how can I use a "for loop" to do this? The hours and ...
user avatar
  • 19
0 votes
0 answers
16 views

How do I move a file out of a sambashare and to another user?

I'm new to Linux, and have been trying to send a zip file from a sambashare that I made earlier on my dedicated server to another user, where I have made a Minecraft server. The zip file includes ...
user avatar
0 votes
0 answers
21 views

Can't open visual studio code using (code .) in /var/www/html in WSL2

Can't open Visual Studio Code from terminal in /var/www/html (WSL2) gives error: $ code . To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows ...
user avatar
  • 101
0 votes
1 answer
38 views

"1 executed" prompt on opening gnome-terminal

For the past 1 week every time I open a new gnome-terminal on ubuntu it starts with 1 executed prompt as shown in these two images as shown below. This wasn't the case few weeks before.If anyone ...
user avatar
0 votes
0 answers
30 views

Bash treats some files as non-existent files

The Problem I have a lot of gcc i686 cross-compiler executable files in a custom bin directory, i previously placed them on default bin folders, but no matter what, i cant open them. I tried to open ...
user avatar

1
2 3 4 5
429