People who code: we want your input. Take the Survey

Questions tagged [command-line]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
18 views

Trying to Flash ROM, asked to install "make' and C compiler. Probably not needed

I am trying to to Flash Rom on a Lenovo X-230 with Skulls, supposed to be a frequently used, straight forward Process. I think my problem is the creation of a back up file, and how the CLI command is ...
0
votes
0answers
9 views

how do I change the way directories are shown in the terminal [duplicate]

when in the terminal it is showing the full path of the working directory which can take up most if not all of the screen width. How do I change it so that it only shows the name of the current ...
0
votes
0answers
15 views

Chose EFI boot on Mac but no Black & White screen to edit boot entry

I am new to this but I wanted to try Ubuntu on my Macbook Pro (2012). i followed a couple of similar instruction on the internet but when I got to the 'edit boot entry' to add "nomodeset" ...
0
votes
1answer
25 views

Rsync directory error

I wanted to copy files that are made 15 and more days ago. Here is the code im currently using rsync -RDa0P \ --files-from=<(find /vmail/folder1/ -mtime +15 -print0) \ . root@202.60.9.11:/...
0
votes
0answers
26 views

How do I edit this bash script, to only look for english subtitles

I have found and edited a bit in this script: #!/bin/bash # # Version 1 # # (C) 2016 Daniel Faust <hessijames@gmail.com> # # A BASH script that extracts subtitles from a matroska file. # # ...
0
votes
2answers
76 views

How to sort files into directories and subdirectories by name?

I'm new to ubuntu and also to the programming world, and I don't really know how to do this! I have a folder with lots of files named as follows: 000_S_001_mpc_asd.json 000_S_001_mpc_asd.nii ...
0
votes
0answers
9 views

Alacritty command line doesnt work as intended after editing Alacritty config file

I've added config customization to Alacritty by adding this to my path and editing. I have spent the last 3 hours or so editing to a point where I am happy, however I have somehow introduced a ...
2
votes
1answer
91 views

How to create your own Linux package from scratch? [duplicate]

How do you create your own package in Linux, just like cd, ls, or any third party package? All I know is how to create a .sh file, write a script in it and execute it using: bash file_name But in ...
0
votes
1answer
30 views

why my ubuntu 20.04 does not has a dock

I have been using ubuntu 18.04 and it has no dock so I upgraded my ubuntu to 20.04 but, still, the dock doesn't show up I tried many ways but nothing worked in the tweak tool I don't have an extension ...
0
votes
0answers
21 views

Convert PDF to flipbook using the command line

I'm looking for a package & command to convert a PDF into a flipbook, which will then be printed on A4 paper. Do you have anything to recommend? Thanks!
1
vote
0answers
21 views

Terminal autocomplete doesn't work after some updates

I have been using Ubuntu for quite some time now. At first everything worked good. After some update that was released lately (probably less than 2 months), terminal does not autocomplete commands any ...
0
votes
0answers
18 views

How to raise alerts after a certain time frame from the time stamp of the file name?

#!/bin/bash files=() each_row=() raw_file_names=() directory=($(ls /home/cloudera/Downloads/20211006/*)) csv_file=(/home/cloudera/Downloads/log_20211006_1.log) completed="Completed" for i ...
2
votes
0answers
32 views

How to lock a partition with Ubuntu so that it won't be accidentally wiped during an OS installation?

I want to install Arch. I have no use CLI-installer. So I am scared that I delete my important data in a partition. Can I lock the partition for saving data? I use ubuntu. Can I do it in ubuntu? Or is ...
0
votes
0answers
45 views

How to keep only the word after the third underscore in 8th column?

I have a table (.tsv) like the following: s__Methanobrevibacter_smithii k__Archaea p__Euryarchaeota c__Methanobacteria o__Methanobacteriales f__Methanobacteriaceae g__Methanobrevibacter ...
0
votes
0answers
18 views

ubuntu 21.04 - gnome-tweaks - themes don't stick after restart

I recently switched to ubuntu/gnome due to my having replaced my 1920x1200 laptop by a a new 4K-capable machine: the old setup that I copied over did not handle scaling to my satisfaction. Pretty much ...
0
votes
0answers
13 views

Update Maven causes JAVA_HOME problem

I broke maven... I wanted to change from 3.6.0 to 3.8.1 and nothing is working yet wget https://downloads.apache.org/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz tar xf apache-maven-*....
0
votes
1answer
23 views

How to return from xdg-open within a shell script

I have some shell functions which allow me to quickly open something in my browser, for example: issue () { if [[ -z "$1" ]] then xdg-open "https://github.com/myname/...
0
votes
0answers
14 views

Can't kill defunct process or its parent. It never goes away

I have a defunct process that just simply won't go away, no matter what kill command I run. I have referred to What is a <defunct> process, and why doesn't it get killed? and several other ...
1
vote
1answer
28 views

Find the power consumption of the network card

Is there a tool to print the power consumption of the network card ?
0
votes
3answers
51 views

merging tab delimited txt files based on column (which is header ) in bash?

Im having two text files which contains million records , all the records are tab delimited , how we can merge these two files based on same header(column)? file:1 LogEntryTime nameId ...
0
votes
1answer
34 views

Keep terminal output file open and appended indefinitely

This thread here discussed how to write terminal output to a file. Suppose I run a Kafka consumer command in a terminal, using >> out.txt to store the streamed data. Once the data stream is ...
0
votes
1answer
25 views

How can I make the C++ compiler support template for STLin order to install hpctoolkit?

I am trying to install hpctoolkit using Spack. In order to do that, I executed : git clone https://github.com/spack/spack.git cd spack/share/spack source setup-env.sh spack fetch -D hpctoolkit spack ...
0
votes
0answers
16 views

tor command changed behavior

i'm using ubuntu 20.04. i'm using the tor command for quiet some time now. when i run it, i get: $tor ...
0
votes
0answers
23 views

Sending Email from Comand Line in Ubuntu and specify Sender

Installed mailutils on my Ubuntu 20.x Server via sudo apt-get install mailutils. And did basic setup and can send mail from the comand line but run into a few issues. a) One i need to be able to set ...
0
votes
0answers
24 views

How do I choose which monitor that my virtual console is on?

I turn on virtual console and when I do, it uses my first monitor when I want it to use my second monitor. I don't know how to select which monitor it goes on, I have also tried to do primary monitor ...
0
votes
0answers
113 views

ssh login halts partway through, and terminal freezes

When I try to log into my remote Ubuntu server, I log in successfully, but my terminal freezes, displaying only half of the welcome banner. This is how my terminal looks when in freeze : Welcome to ...
1
vote
0answers
34 views

Ubuntu 20.04 won't boot up

I've been trying to open my Ubuntu OS on a SBC device but it won't boot up and also it won't open terminal and when I run F7 to see what happen, I got this result attached here. Please what do I have ...
1
vote
1answer
66 views

Pattern Matching using Grep

I'm trying to find a specific value for my file heres a quick snippnet of it: PRODUCT_TYPE_NAME,PRODUCT_CLASS_NAME,PRODUCT_SUB_CLASS_NAME,PRODUCT_MINOR_CLASS_NAME,PRODUCT_COUNTRY_ORIGIN_NAME,...
0
votes
0answers
24 views

How to make ubuntu know a terminal command for the entire machine? [duplicate]

I have a lot of projects. And for each project, I have two files in them: setup and serve. Each developer follows these simple three steps to start coding: git clone ... ./setup ./serve The problem ...
2
votes
0answers
21 views

Running a software from a different folder

I want to run software for genomics data using Plink. My software is located in one folder and the required data files are in another folder. I can run easily if I put all files in the plink software ...
0
votes
0answers
37 views

How can I proceed if it is impossible to delete a (snap) readonly directory?

I want to execute a similar command to the following command from this post sudo rmdir /usr/share/ghostscript/9.25/iccprofiles The actual command is sudo rmdir /snap/gimp/367/usr/share/ghostscript/9....
1
vote
0answers
19 views

Automatically adding bitmap fonts to font path

I've enabled bitmap fonts on Ubuntu 21.04 and they work fine. I did have this command in my bspwmrc file: xset +fp /usr/local/share/fonts/misc But every time I reloaded the bspwm config file this ...
1
vote
2answers
104 views

How Do I Update Ubuntu Linux Software Using Command Line? [duplicate]

I'm new and I want to know how do I update Ubuntu Linux for security and application fix/upgrades using the ssh command line? How can I install updates via the command line option?
1
vote
2answers
67 views

Sort a file according to a field starting with string

Suppose I have a file so structured /home/zz/AUTHORBOOKS/Author-Chomsky-Who-Rules-the-World.epub /home/zz/AUTHORBOOKS/Author-Cioran-Il-nulla.epub /home/zz/BOOKS/Author-Artemis-Mathematica-Examples.nb /...
0
votes
0answers
30 views

cant use “cargo, rustup and rustc” even after installing rust-lang

So I installed rust in my WSL (Ubuntu) as the official site says, by doing curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh I see the commands exist (cargo, rustc, rustup) in ~/.cargo/...
1
vote
0answers
21 views

How to pass .json file in a .sh script so that the Jenkins build will install/include it

When running some integration tests on Jenkins, I get this: "[Failed to read configuration file. Failed to open JSON file '/etc/ara_tsyn.json'.]" Locally, I don't get this error cause i have ...
9
votes
2answers
542 views

Want a CLI interface to Transmission: transmission-remote, transmission-cli, transmission-remote-cli?

The Ubuntu 20.04 package transmission-cli says: This package contains a (deprecated) stand-alone command-line client, transmission-remote to interface with transmission-daemon and tools to create, ...
2
votes
0answers
31 views

How to make system boot to text mode with high resolution and use startx to start KDE on Kubuntu?

I've tried a few suggestions, but have hit walls each time with various odd issues and would like a clear and working strategy to make Kubuntu 20.04 start to a higher resolution text mode console with ...
4
votes
0answers
42 views

Preserve colors in console of a Bash script output while logging

I would like to preserve colors, in console, of a Bash script output, while logging and echo it to console. When I run a script with the following code, I lose colors in console. LOG_FILE="Merge....
1
vote
0answers
18 views

unable to start a LXC container - lxc-start: lxccontainer.c: wait_on_daemonized_start: 804 Received container state “STOPPING” instead of “RUNNING”

Im very much new to LXC and LXD concepts. I was experimenting with LXC's by creating a containers and destroying them. after some experiments, I tried to create a container to implement by task, was ...
0
votes
0answers
29 views

Why use tee with wget? Isn't it superfluous?

So I came across this code for downloading youtube-dl using wget which pipes into tee here: How can I update youtube-dl? The code being: wget -O - https://yt-dl.org/downloads/latest/youtube-dl | sudo ...
9
votes
2answers
547 views

How to get the output of two cat commands parallel to each other

If I run cat file1.txt, I have: linux mint ubuntu cent-os fedora debian kali linux arch linux kubuntu open suse deepin parrot os Then cat file2.txt gives: linux mint cent-os fedora kali linux arch ...
0
votes
1answer
69 views

Ubuntu Slow and Unresponsive. Terminal takes about 20 seconds to load

This is Magma, I have been having issues with my Ubuntu system right from the instance I installed it. My laptop Specifications are: Processor: i7 9750h GPU: 1660ti Ram: 8 GB Hard Disk 1 TB out of ...
1
vote
0answers
34 views

Argument List too Long for Everything besides default Terminal?

I am currently running Ubuntu 20.04.2 LTS on VirtualBox, when ever I try to use the terminal in visual studio code on the VirtualBox, I get the following message, user@ubuntu:~/Documents/test$ ls bash:...
0
votes
2answers
49 views

How to copy files into a new file

How to copy files from one file to another file that has contents I want to keep? In other words, I want the contents of file1 to go in file2 but the info in file1 to be added to the existing stuff in ...
3
votes
2answers
363 views

how to use command line argument to find .txt file that have common name

I have multiple files in a directory called files. I have to read each .txt file from this directory: abc123.txt abc234.txt abc345.txt abc.txt def123.txt def234.txt def345.txt For example, when I ...
0
votes
0answers
17 views

Cannot run web-greeter irror showing

I installed web-greeter from the instruction mentioned here How can I install lightdm-webkit2-greeter? The webgreeter installed succesfully but when i run it within my desktop session as mentioned ...
-2
votes
0answers
20 views

Integrate coloured shapes and texts in ubuntu terminal

I am working on a project to simoly make linux shell on ubuntu. I want to change my font color for few commands and enclose my errors into red box whose height will be equal to errors height and ...
0
votes
2answers
33 views

Sed for replace a substring inside a string with a pattern

I am trying to replace a part of a pattern, such as, if I have col(3,B,14), after applying the sed command, I would like to get col(3,B,t14) which adds the t character to the third parameter in the ...
3
votes
0answers
22 views

Problem with xfce terminal during dialogs in command line installs

I am using terminal in Ubuntu Studio 20.4.2. During installs with apt in the terminal, if there is a dialog that requires a keyboard or mouse response, the response is not recognized and the apt ...

1
2 3 4 5
409