Questions tagged [command-line]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Extracting Specific Information from file

I have a file created from a command I run on my system. After the file is created I want to extract only specific information from that file but only it it meets certain criteria. Here is what my ...
0
votes
1answer
43 views

"bash: cd: /home/marcoluis/.local/bin: Not a directory"

While trying to install ade(Awesome Development Environment) through Ubuntu Terminal, for a Autoware.Auto Course , I've ran into a problem while moving the ade executable from "adehome" file ...
0
votes
0answers
17 views

How to change the XFCE display profile via command line?

I can configure different display profiles using the xfce4-display-settings command, and I know that I can query which display profile is currently in use with the command xfconf-query -c displays -p /...
0
votes
1answer
47 views

Run a command against multiple directories with slightly different names

I want to run a command to delete backups so that I can reduce disk usage. Not sure how, but * represents all the directories under the sites directory sudo rm -r sites/*/private/backups/* My ...
-1
votes
2answers
57 views

How to filter rows in a csv file with bash based in two conditions?

I'm doing a project in which I have to parse a csv file (indian liver patient dataset) and I'm trying to change the position of one column. The second to last must be the last column. I'm following ...
3
votes
1answer
77 views

How to replace a string in multiple files in multiple folders with different hierarchy in linux command line

I have many files with the extension *.launch distributed in different folders inside the parent directory, the hierarchy is not always the same for the .launch file. i.e: src/folder/sth.launch and ...
0
votes
0answers
35 views

Basically debian moved away from iptables to nft tables and prof is making us use nft tables , and my command is not working [closed]

iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE How would I write this command using NFT tables |translate didnt work :( |
0
votes
1answer
52 views

Shell script to copy multiple files

I'm trying to do a shell script that would copy a bunch of files but struggle with setting up a loop to read through the files: aws s3 cp s3://noaa-bdp-pds/gdas.YYYYMMDD/00/atmos/hdas.t00z.sfcf000.nc ...
0
votes
0answers
24 views

GRUB console appears and it's stuck

I have a problem with booting ubuntu and every time I turn on my linux machine I see grub> grub>ls (proc) (hd0) (hd0,gpt2) (hd0,gpt1) grub>ls (proc) Device proc: Filesystem type procfs - ...
-4
votes
0answers
22 views

Arrow Keys stoped working in Terminal [closed]

my arrow keys have stopped working and I can't seem to find a fix. I am using Kali Linux and since yesterday my arrow keys have stopped working. I do a lot of ctf's and reverse shells and I sometimes ...
0
votes
1answer
51 views

Find command from left to right and attach ID

I am trying to match MRI files with their volume files. Background: Link to files: https://wiki.cancerimagingarchive.net/pages/viewpage.action?pageId=68550661#68550661171ba531fc374829b21d3647e95f532c ...
0
votes
1answer
74 views

Cannot get back GUI Ubuntu 20.04 VirtualBox

I installed Ubuntu 20.04.3 LTS on VirtualBox and everything was working fine until I restarted my PC. Unfortunately now I cant seem to get back my GUI. I see alot of commands about holding Right Click ...
0
votes
0answers
34 views

bash script: why does test check more than exact matches?

I'm trying to make HAL 9000. I have a file that contains "dialog" from the movie, and a wordlist that has words in EEPROM, at their respective memory locations, and chips where the words ...
0
votes
1answer
44 views

For each different folder how to make a different .iso?

I have 12 folders one two three four ... I wish to make something like this one.iso two.iso ... but I don't know what command can I use. Any suggestion? with Mkisofs you can use mkisofs –o backup....
-5
votes
0answers
43 views

I can't update my dpkg packages via apt [closed]

klasendaniel8@penguin:~$ sudo apt update Err:1 http://ppa.launchpad.net/lutris-team/lutris/ubuntu impish InRelease 416 Requested Range Not Satisfiable [IP: 91.189.95.85 80] Hit:2 http://download....
0
votes
1answer
30 views

Using JQ and curl to get list of all ID's that have a certain type

Been spending hours attempting to get this working. So https://launchermeta.mojang.com/mc/game/version_manifest.json contains every single version of the game ever made. I want to get a list of all ...
0
votes
1answer
25 views

can't pull docker

if I try to pull a docker it gives me this output Using default tag: latest Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%...
0
votes
0answers
12 views

Ubuntu Desktop Login Boot Loop

I have been battling with my Ubuntu 20.04 VM now for an hour with no luck. I booted up the VM today to do some vital work on the system and it would simply not let me login. I have now tried all ...
0
votes
1answer
75 views

How to create calculator with bash?

How to create calculator with bash ? example read -p "calculator count: " calc echo '$((calc))' | bc i input 2+2 output (standard_in) 1: illegal character: $ how to fix ? I just ...
-3
votes
0answers
35 views

how to create list item bash terminal [duplicate]

I want to ask, how to create a list item using bash terminal ? I want to make like this 1. update 2. upgrade 3. options 4. exit if I click 1.update it will run command number 1 then when finished it ...
4
votes
2answers
228 views

Script to run a command in a terminal and then open a new terminal tab and run another command

I am running Ubuntu 21.04 and I want to create a script, that would do the following: Run: cd && cd path/to/repo && git pull && npm i && code . && npm run dev ...
-3
votes
0answers
23 views

I have installed mgl tools now i want to set up a command to use them? please help

I want ot set up a command for using autodock in linux but not understand how to do it. can you please help? or tell me some example whihch is helpful to set up command. thank you in advance.
0
votes
1answer
51 views

Trying to paste a typed command to a terminal

I am very new to robotics and ROS and am looking for some help trying to create some keyboard shortcuts that allow me to paste them into a terminal. Currently i am using the xdotool to do this. I am ...
-1
votes
1answer
30 views

E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/steam.list [duplicate]

sudo apt-get -f install sudo apt-get update sudo apt-get autoremove sudo apt-get dist-upgrade E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/steam.list E: The list of ...
0
votes
0answers
20 views

Running gnome terminal or x-terminal-emulator from openbox results in nothing happening (Ubuntu LTS 18.04)

I have used a ubuntu mini iso (without any environments or packages installed) then installed Openbox and Xorg using the CLI, did startx, right-clicking and selecting terminal emulator, fails to open ...
0
votes
0answers
17 views

Schedule a folder backup on Ubuntu and delete older backups

I am trying to create a backup on my Ubuntu machine and schedule it. The backup should zip a dir and its subdirs then delete zip files older than 30 days. I wrote this shell: zip -r "/home/...
1
vote
4answers
85 views

How I can run application from anywhere in the terminal without being in the full path

I have an application that I can run while I am in the file location as the below: -$ cd home/myApps/app -$ ./run.sh I want to call the run.sh from anywhere in my terminal without being in the full ...
0
votes
1answer
28 views

How to remap CapsLock to Esc key in Ubuntu installed on VPS (console only, no Desktop Environment)?

The goal is to remap CapsLock to Esc key in my Ubuntu 20.04 remote server (console only, no Desktop Environment). This Ubuntu system is installed on Virtual Private Server. I'm logging to this server ...
0
votes
1answer
42 views

`ffmpeg` doesn't recognize input from pipe for merging mp4 via concat demuxer

I want to merge mp4 files via the concat demuxer and cannot get it to work with a script. I am using the script from another AskUbuntu answer, called concatmp4 here: #!/usr/bin/env bash if [ $# -lt 1 ...
0
votes
0answers
25 views

How to sort characters with their occurrence in a file, alphabetically and also when the amount of occurrence is the same?

So I have, for example, the following output on the Ubuntu terminal: 238 E 150 A 88 T 88 R Now I want to sort it from the highest occurrence to the least which I have already done. In addition I also ...
-4
votes
0answers
51 views

How to print repeated lines and connect stdout to stdin of the wc command?

Below are the questions that I'm having trouble with, I only know how to redirect the stdout of ls to the foobar file on question 1: ls > foobar Write a command line to redirect stdout of the ...
-1
votes
1answer
58 views

Uninstall Applications On Linux

How can I delete an application on Linux Ubuntu using command lines? I installed some applications such as Davinci Resolve but I found that there are some good programs can be used in video editing ...
-6
votes
0answers
23 views

How to find contact list, messages, calls and browsing history [closed]

Mobile forensic techniques: I have mounted the files and have used the command sudo su to gain root user access. I now need to find contact list, messages, calls and internet searches. What are the ...
2
votes
1answer
49 views

Start vlc minimized from command line

This is what Im trying.. sleep 2700 && vlc --start-time=29 --stop-time=60 ~/Desktop/Interstellar.mp3 from my shell script(may randomize the target file in future) did use --qt-start-minimized ...
0
votes
2answers
94 views

CH340G USB/Serial converter stop communicating with Espressif esptool after upgrading kernel to 5.4.0-88-generic

After upgrading to new kernel 5.4.0-88-generic, ESP266 development boards using chip CH340G (usb-serial converter) stop communicating with Espressif flashing tool "esptool" on my ubuntu 20....
2
votes
1answer
83 views

Does Ubuntu have a command line configuration tool

I'm looking for a command line tool to configure Ubuntu 20+. (Firewall, Users, Networking, Services, Hardware.) Just like Suse has Yast, and CentOS has the Setup tool. I know Ubuntu used to have ...
-2
votes
0answers
136 views

Quick command to get the 'file groups' in a particular directory

Consider a directory which contains several different series of files : for example series 1: Img_school_000.png, Img_school_001.png, Img_school_002.png ... Img_school_099.png series 2 : ...
-1
votes
1answer
52 views

how to compress pdf in ubuntu?

I Want to know how to compress pdf in ubuntu? Please don't recommend Ghostscript Because In some cases the Ghostscript doesn't Compresses file but make the file size greater than the original file.
0
votes
1answer
23 views

cat : Do not read stdin if no input file is given on the command line

I have a script that concatenates files with cat. It contains roughly the following line that hangs the script in reading the standard input if the directory contains no files: cat /path/to/dir/* > ...
0
votes
0answers
31 views

node: bad option: -vbash:

When I start the terminal for the first time, this error shows up node: bad option: -vbash: I don't understand what it means. How do I fix this?
0
votes
1answer
45 views

Usermod: permission denied

When I try to use a usermod command to add me to the sudoers file but it says usermod: permission denied usermod: cannot lock /etc/passwd try again later. When I search things up it told me to add me ...
-1
votes
1answer
40 views

when I change shells from bash to csh or tcsh my command line shows a message: "can't make pipe." what does that means? [closed]

I recently installed ubuntu in my computer and I set up a series of programs that required csh to work. and I installed the csh and tcsh using the commands: $ sudo apt-get csh $ sudo apt-get tcsh Now,...
1
vote
4answers
67 views

Sort files according to the name containing numeric values

I have files in my system like this - -rw-r--r-- 1 abc abcadm 14852497 Jul 23 01:11 ABCD_72_3_20210722_163502.csv -rw-r--r-- 1 abc abcadm 14853145 Jul 23 01:11 ABCD_72_1_20210722_163502.csv -...
6
votes
3answers
257 views

How to check for a specific string with linebreaks in a file with grep?

I have a string variable in a bash script file as follows: string=" test1 test2 " and I want to check whether a file test.txt containts this specific string (including the linebreaks. i....
1
vote
0answers
38 views

I can't capture my screen

I have installed obs-studio in ubuntu 21.04 version. I have faced following problems: Not screen capture, just black window Terrible voice after finishing the record Not able to uninstall after 2nd ...
0
votes
0answers
52 views

sudo apt update error: "E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/spotify.list" [duplicate]

$ sudo apt-get update N: Ignoring file 'some-ppa.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'some-ppa.list.save....
0
votes
0answers
22 views

No Such File or directory using I/O redirection

I am using I/O redirection in Linux to take input from a file named input.txt and output the results to outpu.txt for a compiled c++ program. The command goes like this: /home/gajeet/Documents/...
2
votes
2answers
52 views

How to remove directories that have numbers as file names in Ubuntu using command line?

I have a directory where there are subdirectories which have numbers as directories. For example I have a parent directory test now I have some subdirectories like 1,2,3,4,5,6,7. Now I have a local ...
2
votes
5answers
949 views

Ubuntu command-line suggestion

I've been using Ubuntu 20.04 and trying to get used to it. but repeating same command in terminal is quit boring. i just want some suggestion to get rid of it and how can i get visible command-line ...
0
votes
1answer
41 views

If ifconfig is not installed, how does ubuntu tell you to install net-tools in order to use ifconfig? Why doesn't Debian do this? [duplicate]

If (as an example) net-tools package is not installed and I try to use ifconfig command, Ubuntu says Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools How can Ubuntu ...

1
2 3 4 5
416