Questions tagged [command-line]

The command-line is the interactive interface to your shell.

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

Any terminal for Linux that can be configured to use just PgUp/PgDown to scroll?

How to scroll in a terminal using keyboard?: Use Shift+PageUp and Shift+PageDown. I use now GNOME terminal and it works. But I use scrolling so often and it is so less convenient to hold Shift, and ...
0
votes
1answer
20 views

I leave my raspberry with VPN connection on, and after several hours, I connect to it but has no internet connection. How to troubleshoot/diagnose?

I connect my raspberry to VPN, and I leave it there for hours. When I check it connecting through SSH or VNC, I realize that it has not internet connection. If I reboot and then connect to VPN again ...
0
votes
0answers
8 views

Calcurse cant sync with Nextcloud

Hello I've recently setup a nextcloud instance with a calendar and wanted to sync my calcurse with it. This is my calcurse-caldav config(password, username and hostname obviously changed): [General] ...
0
votes
0answers
10 views

Linux : Use Rsync to copy same filename or pattern from multiple directories

I have a folder structure as below: /path/ | FOLDER1/ | SOME1 | <Files> SOME2 | <Files> ALL ...
0
votes
3answers
42 views

How do I delete a pattern in a column using sed command line?

I have a table like this below; "baseMean" "log2FoldChange" "lfcSE" "stat" "pvalue" "padj" "ENSG00000000003.14" 11....
0
votes
0answers
11 views

iterate through samples in slurm job

I am submitting a slurm job to iterate through 6 samples and do a function 'cellranger count' on them. My job file looks like this: #!/bin/bash ####other sbatch options ... #SBATCH --array=1-6 ...
0
votes
1answer
19 views

How to manage tar files when creating incremental backups

I use incremental backup using tar --create --file=/home/blueray/Documents/backup/dest/$(date +%Y-%m-%d-%H-%M-%S).tar --listed-incremental=/home/blueray/Documents/backup/dest/usr.snar /home/blueray/...
0
votes
1answer
24 views

Creating XFCE4 Application Shortcuts from the terminal (CentOS)

I am trying to add a new application shortcut in the command line which will load the terminal when you press Ctrl + Alt + T. I am using the xfconf-query utility to monitor xfce4-keyboard-shortcuts ...
0
votes
1answer
38 views

how to place a text in the command line

I have a script that reads a line from a file into variable foo. The line is in fact a long command that I often use as a template. I am trying to edit and re-use this long command. How can I place $...
0
votes
1answer
35 views

`type` command inside bash script, is not showing all paths

When I type echo "${PATH}" | tr -s ':' '\n' | nl from inside a bash script and at the terminal I get the same result: 1 /home/nikhil/Documents/Git/Cs/Architecture/bin 2 /home/...
0
votes
0answers
17 views

How to configure Qt base GUI interface in Linux Debian 11

I would like to use my PC to mine Raptoreum coin I visited the project site https://raptoreum.com/ and downloaded their wallet when I start my wallet by executing the qt extension the Wallet starts ...
0
votes
2answers
32 views

Extract function string before function name with regex

I want a regex that would search for something like: package_name.some_function_name.foo() that would be part of a line and would and extract the some_function_namebut it should be able to work ...
0
votes
1answer
11 views

Combine Multiple pdfs with a new page with text between each

I've read through and tried multiple posts on similar topics and none satisfied my purpose. I have multiple pdfs which are project reports for each week of a 16-week project and are titled Week1.pdf, ...
0
votes
0answers
16 views

Apache2 Installation on Xbuntu

I'm moderately new to linux.I've been using it for now around 1 year. Now I'm on xubuntu. before that, I used Linux Mint, Debian, Ubuntu. Guys, I need to set up apache for testing web forums with perl ...
0
votes
0answers
37 views

"Task based" linux command-line cheat sheet

There are a lot of "Linux command-line cheat sheets" on the internet. But often they simply list the commands, in better cases sort and describe them. What I am looking for is something I ...
0
votes
1answer
40 views

Creating a terminal that interacts with CLI tools

I'm familiar with the need to handle things like signal processing and child reaping and such. However, I'm not entirely sure how CLI tools (i.e. vim, nano) work. Do they print to stdout (don't think ...
0
votes
3answers
121 views

Is there a Linux command that removes just the first character of every file?

Is there a Linux command that can remove the first character on the first line for every file in a folder, and then save it? Many online resources cover doing this for every line instead of just the ...
-1
votes
1answer
33 views

Multiple sudo -S in one command problem

I wonder how can I perform that command without inputing manually the password: echo "password" | sudo -S curl https://cli-assets.heroku.com/install.sh | sudo -S sh Currently it still asks ...
0
votes
0answers
28 views

Change PDF page size without re-scaling a content (CLI)

Question I have a PDF with a non-standard page size. I would like to change PDF canvas size to A4 without re-scaling the content. I can receive the expected result with Printing to PDF (picture below, ...
-1
votes
1answer
66 views

Issues with NordVPN on Ubuntu 18.04

I'm using NordVPN version 3.12 on an Ubuntu 18.04.6 media server and I've run into many connection issues. The Linux CLI version is very unstable compared to the desktop version, with the VPN getting ...
0
votes
2answers
48 views

What is the reasoning behind accepting truncated long command line options?

Many command line utilities accept long ("GNU style", according to [1]) options such as --version. To my surprise, truncated versions are often interpreted as the full option. For example, ...
0
votes
1answer
20 views

How to zgrep and then gzip multiple files individually?

I have the following code which searches for a term in multiple files (file1.json.gz, file2.json.gz, etc etc) using zgrep, and then using gzip it saves the output into a single file: zgrep -i 'help' /...
0
votes
2answers
45 views

Why can't I use environment variable with chmod command? [duplicate]

I can't use environment variables with chmod command. Is there any workaround to run this? The way I'm trying to run in a sh file export PEM_FILE="~/.ssh/xxx.pem" chmod 400 $PEM_FILE ## ...
0
votes
0answers
23 views

My variable seems to change when passed into a CLI [duplicate]

I am attempting to use a java based program, CRFVoter, for text mining. I called and executed the script as specified. [user]$ java -jar CRFVoter.jar usage: CRFVoter GPRO Command Line Tool for ...
0
votes
0answers
14 views

The Search Path of Command "find" [duplicate]

Using the command "find / -name "libcudart*"", I tried to find all locations of CUDA runtime libraries. I got the following locations: /usr/local/cuda-11.2/targets/x86_64-linux/lib/...
0
votes
0answers
39 views

Why does using subprocess not give complete output for grep?

I am trying to use subprocess.check_output() to grep my a Git repo, but the output differs from when I run grep in my terminal. When I grep in my terminal it gives around 100 lines of output, but when ...
1
vote
1answer
34 views

Filter phots into directories by date range

I have set up our family mobile phones to automatically backup all photos taken to a NAS (Qnap TS-231P), one folder per mobile. For one phone, for some reason a lot of photos were copied multiple ...
0
votes
2answers
33 views

Bash commands using smb:// -> No such file or directory

I have an smb share that I see in the Files explorer as smb://whitebox.local/photos/ If I try to use commands on this smb share using the smb:// syntax, I get a "No such file or directory" ...
0
votes
1answer
39 views

Why Command "cata/etc/..." does not give me any results? [closed]

Why if I type: cat/etc/passwd or cat/etc/shadow the termnal give back me the message: no such file or directory found ? At least I should visualize me like user
1
vote
1answer
47 views

Kill all of my processes that were started within the past hour?

How do I kill all processes with my username that were started within (past hour, past day) etc?
0
votes
1answer
34 views

Open URL as if with browser from command line

I am having roughly the same problem as in this question, where the problem is, there is a certain URL that, when called in the browser, will download a file, but when called from the command line ...
0
votes
0answers
9 views

Configure a desktop shortcut during live media ubuntu 20.04 customization

Context Currently I'm creating a customized Ubuntu 20.04 LTS to be booted from live media (USB). I'm trying to create a desktop shortcuts i.e. for the shutdown command. I prepared a .desktop file ...
0
votes
1answer
22 views

Command Line ZIP - How to ZIP an entire folder, but dodge the other zips present?

I've been tasked to update a few of our sites and so, before doing so, I have to zip the public_html folder so I have a backup. Problem is, public_html has a bunch of other ZIPs that are older backups ...
0
votes
3answers
55 views

confused about awk scripting

directions state your script file will be tested on our system with the following command: awk -f ./awk4.awk input.csv Write an awk script that will accept the following file and output the name and ...
-3
votes
0answers
17 views

Installation problem regarding MGLTOOLS 1.5.6

I hAVE INSTALLED MGL TOOLS AND NOW I WANT TO SET PATH FOR THEM. i HAVE ATTACHED THE PICTURE. hOW TO SET THESE PATHS FOR .BASCRC FILE. plese provide complete information. thank you.
1
vote
1answer
22 views

How can I make an autocomplete function for zsh that can allow for a random number?

I have a small script for managing tickets in gitlab repos. When I type ticket and press tab, I'd like to see: % ticket new -- create a new ticket # -- Number of ticket -v -- increase verbosity ...
0
votes
0answers
31 views

How use du command for root and nested content to get the same total value?

About the du command with the option -sch If is executed du -sch spring-security appears: 103M spring-security 103M total But if is executed du -sch spring-security/* appears (see the bottom) ...
0
votes
1answer
26 views

Extract Product, number and quantity from a text file

I have improper text file which has product name, website location and quantity. Now I just want to prepare product name, number (extract from URL) and quantity. Input file: rawfile.txt Component ...
0
votes
2answers
41 views

Run command after file manager (Thunar) window is closed

I am writing a simple script where I need to open a directory dirname with Thunar and delete that directory after closing the Thunar window. I was expecting something like thunar $dirname && ...
0
votes
0answers
8 views

Is there a command-line option to get IO information per disk when using pcp-dstat?

I need to gather IO information per disk using pcp-dstat. However, while dstat (its predecessor) directly displays IO activity per disk, pcp-dstat only gives IO information for the system overall. ...
2
votes
3answers
511 views

Find: Use regex to get all files with specific directory name in path, but without another specific directory name in path

I'm trying to use find to return all file names that have a specific directory in their path, but don't have another specific directory anywhere in the file path. Something like: myRegex= <regex>...
0
votes
1answer
45 views

Parse lsblk with jq

I am currently trying to parse the output of lsblk with jq and filters it based on some criteria. Given the following example output: { "blockdevices": [ { "name":...
1
vote
2answers
79 views

How to run simultaneous commands in single terminal

I feel like this should be answered somewhere, but for the life of me I cannot find it so I figured I'd just ask... I'm trying to run 2 commands in my terminal simultaneously, but I need them to run ...
0
votes
1answer
62 views

awk prints if and else case

I wrote the following command: lsblk -nl /dev/sdd -o MOUNTPOINT | awk '{if (NR!=1 && $1) { print 1; } else { print 0; }}' It is supposed to check if any of the paritions of the given device, ...
0
votes
2answers
18 views

Replace immediate next string/word coming after a particular pattern

I have a pattern like this file.py ARG in my file I want to search the pattern file.py and replace the ARG with a new value (without removing double quote " at the end) in all the matches. The ...
0
votes
0answers
12 views

FFMPEG Multiple Filters (Scale Video + Scale / Apply Watermark)

Can someone please tell me the proper syntax for combining the following filters into a single command? I can't seem to figure it out. The following command is being used to scale the video. ffmpeg -i ...
0
votes
0answers
8 views

How to get the vmware version through linux command-line without accessing the ESXi server?

I don't have access to the ESXi server. I don't have root access to any machine. Just a regular user. The current machine runs on VM and has Linux as its OS. Is there a way how to know the ESXi ...
1
vote
2answers
85 views

Save all terminal output to a file, after the fact

This: Save all the terminal output to a file Except after the fact. Meaning that instead of preparing to record or pipe all output to a file, I am dealing with output that has already taken place, and ...
1
vote
1answer
44 views

How to set wine DPI from the command line?

I have a high DPI monitor, and every time I create a Wine prefix the default 96 dpi is minuscule. Is there some kind of console command or script I can run to just set the dpi without having to squint ...
0
votes
2answers
44 views

How to Completely Remove an Application with it's PPA that is being installed via PPA and GPG

I installed brave browser using: sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg echo "deb [...

1
2 3 4 5
114