Skip to main content

Questions tagged [command-line-interface]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

Filter by
Sorted by
Tagged with
1 vote
1 answer
66 views

CLI tool to monitor file size growth, transfer rate, and calculate progress bar/ETA?

I have a Proxmox job, and I'm running a backup job via the web UI. (I'm guessing it just uses the Proxmox vzdump command under the hood.) The final QEMU disk will be close to a TB in size, so I'd like ...
victorhooi's user avatar
8 votes
3 answers
3k views

Take screenshot of rendered HTML from Linux without GUI

Is there any smart tool or anything I can use to take a screenshot of a rendered localhost website on a Linux server without monitors? I am using Rocky Linux 9 and I have done group-install of "...
Paul Folkers's user avatar
0 votes
0 answers
14 views

Run program on incoming call w/ SIP (callmonitor) on Linux

Friends, I'd like to run a custom program whenever a SIP call is received, similar to common call monitoring UIs. I do not need any (G)UI for this. I imaginge something like: /usr/bin/the-imaginary-...
Marcel's user avatar
  • 1
0 votes
0 answers
34 views

How can one clone a runAI job via command line?

The runAI web UI allows users to clone jobs. How can one clone a runAI job via command line?
Franck Dernoncourt's user avatar
0 votes
1 answer
76 views

What is the difference, if any, between runai suspend + runai resume vs. runai delete + clone job via UI?

What is the difference, if any, between runai suspend + runai resume vs. runai delete + clone job via UI? Both runai suspend and runai delete delete logs and any data saved on the container, so I don'...
Franck Dernoncourt's user avatar
0 votes
0 answers
16 views

Xenserver Template Storage Dependency - VM Creation Issues on Different Hosts

I'm working with XenServer (XCP-ng) and have encountered an issue with VM creation from templates. Here's the scenario: Three storage repositories (SRs) on separate hosts (host1, host2, host3). A ...
Nitesh Dudhe's user avatar
0 votes
1 answer
168 views

CloudLinux Terminal CLI command to get OS version

On the documentation page (https://docs.cloudlinux.com/shared/command-line_tools/) there are nearly 300 instances of the word "version" and skimming through it goes in to users, programming ...
John's user avatar
  • 138
0 votes
0 answers
211 views

Trying to pull the first word from a text file that has a username password format and pass it to a command

I have a text file. It appears similar to this: john-doe password I want to pull the username from the list and use it to add the user to a group: net localgroup "remote desktop users" ...
Alex Chejlyk's user avatar
0 votes
1 answer
83 views

Query Windows RDP monitor positions via command line

I am using Windows RDP (remote desktop) with a multi-monitor setup and I want my script to automatically detect the position of the monitors. Additionally, I only use some of my monitors for RPD with ...
Aaron Caba's user avatar
0 votes
0 answers
130 views

Long running PHP script get terminated and other separate PHP cmd line processes as well

Env: Ubuntu 22.04.4 LTS PHP 8.1 CMD line scripts started with the & and left to run in the background I have 3 separate PHP scripts which I started from an SSH session and are placed in the ...
Dan's user avatar
  • 235
0 votes
0 answers
77 views

How to establish VPN connection with two factor authentication from CLI

A VPN connection have to be established on demand from a bash script. GUI needed to enter two factor auth code. If you'll try to execute in terminal: VPN_NAME=$(nmcli con|grep "VPN"|awk '{...
Vasin Yuriy's user avatar
0 votes
1 answer
283 views

ssh from CL using keyfile from Windows client to Linux server

This sort of thing drives me crazy - hopefully obvious solution(s). Have keys on Win 10 laptop, and on one of my Linux servers. If I use puTTY, where I can explicitly browse to the keyfile on the ...
Johnny Canuck's user avatar
1 vote
2 answers
116 views

Get file system type in AIX

I want to fetch the file system types in AIX like NFS and all. du command shows just the file systems not their types. How can I do that?
Harish Rajora's user avatar
0 votes
0 answers
36 views

Can Wildfly/JBoss Management CLI with embedded host controller use a temporary local domain controller?

I need to use Wildfly/JBoss Management CLI to set up managed servers connections to the domain controller. It's under automation, so I'm using the Embedded Host Controller to avoid the hassle of ...
Emerson Prado's user avatar
0 votes
1 answer
364 views

How to set Wildfly/JBoss domain controller IP address in managed servers using CLI?

I'm trying to change the domain controller IP address in JBoss/Wildfly managed servers using the management cli, but the configuration either keeps unchanged or changes in the wrong way. I can find ...
Emerson Prado's user avatar
0 votes
0 answers
129 views

How can I fix this Mysql login?

I have installed MYSQL community edition on Windows server, I also added the Environment variable to execute the mysql command. The scenario is: When I try to connect to mysql using the CMD I get the ...
sysalam0's user avatar
0 votes
1 answer
1k views

How to check if a process is running or blocked on lock or I/O?

There are 2 instances of a script reported by ps. How can I see in the command line if one of those (and which) is blocked on either I/O or on a file lock?
Jim's user avatar
  • 109
0 votes
0 answers
98 views

Connect to VPN Server from command line on headless system

Is there a (relatively) hassle free way to connect as a client to a VPN Server (which uses Cisco IPSec)? The client is a Debian headless system hence the connection needs to be established from the ...
220284's user avatar
  • 101
0 votes
1 answer
2k views

Script to cleanup Windows.old remotely

Problem: A lot of older workstations on our networks are running out of hard disk space and I am looking for ways to stream-line the process of cleaning up some space. I understand I can use Disk ...
PedalTech's user avatar
0 votes
1 answer
327 views

Azure CLI `AZ LOGIN` ERROR: "Found multiple accounts with the same username"

I'm getting this error whenever I try to login to Azure via the CLI. Here are the details: PS C:\Users\MyName> az login Please select the account you want to log in with (Now I get a popup ...
Flak DiNenno's user avatar
0 votes
1 answer
354 views

Net group command

I'm working on an automation project, and I need to add members to a specific group using a command-line approach. Currently, I'm using the net group command like this: net group "group name"...
Ahmed brh's user avatar
2 votes
1 answer
360 views

Find which physical disks are in virtual disk from CLI

I have the following virtual disk : # omreport storage vdisk controller=0 vdisk=14 Virtual Disk 14 on Controller PERC H730 Mini (Embedded) Controller PERC H730 Mini (Embedded) ID ...
SebMa's user avatar
  • 409
2 votes
1 answer
188 views

Save commands used in shell to a file

Someone is going to connect to my server and type some commands into the terminal. But after finishing his work, he deletes bash_history. I am looking for a way to save every command entered into the ...
Fardin's user avatar
  • 21
0 votes
1 answer
287 views

What is the simplest way to set up shared/clustered read-write filesystem across servers?

What is the simplest way to set up shared/clustered read-write POSIX-compliant filesystem across servers where performance is not a major concern? Suppose I have two Linux servers S1 and S2 and an ...
otujuhxv's user avatar
0 votes
2 answers
735 views

Use original linux user bashrc also as root user

I extended the bashrc file of my linux user. This file contains extra aliases, functions, whatever is useful. It's synchronized with a playbook across our 100+ servers. When i'm working on linux I ...
ansible_usah's user avatar
1 vote
1 answer
370 views

Is it possible to mount an .iso file to the CD/DVD device of an VMware Workstation using command line?

I'm on Windows and using VMware Workstation as my virtualization tool. Normally, if I want to mount an .iso file to my guest VM, I can do it through the GUI: I want to know if it's possible to do the ...
Fajela Tajkiya's user avatar
1 vote
1 answer
107 views

zsh completion ( compctl ) does not trig for command names containing dashes

I've used zsh compctl since forever (late 90s or early 00s) but strangly never run into this before. I realized today when I intended to make some compctl config for update-alternatives that my ...
fraxflax's user avatar
0 votes
1 answer
1k views

Linux tunnel device config

Currently, I have multiple android users connected to my server through TCP connection. Each authorized users have an interface and an unique IP address between 10.0.0.0 … 10.255.255.255. Whole user’s ...
Ali Khazaee's user avatar
0 votes
1 answer
851 views

With GCloud CLI -- how to list all instances associated with a particular schedule (i.e. resource-policy)?

Here is a picture of the WebUI for GCP, showing an "instance schedule" that has 3 instances currently associated with it: How can I list those same 3 instances using the GCloud CLI? I found ...
CrashNeb's user avatar
  • 113
0 votes
1 answer
61 views

Cannot update Github key from CLI

I have only just tried to use github via git on the cli for the first time since they leaked their key and it needed resetting. I added the new key into known_hosts under users/luke/.ssh (Windows 11) (...
Luke Briner's user avatar
1 vote
1 answer
2k views

How to confirm openssl is reading its config file

Is there a simple way of changing the openssl config file and confirming with openssl command line parameters to confirm that it is reading the configuration file? (I'm trying to confirm that the ...
Brian's user avatar
  • 11
0 votes
1 answer
478 views

PHP exec(iptables --help) works but exec(iptables --command) doesn't work

In PHP 7.3.33 and Apache 2.4 I want to run iptables from PHP (web server enviroment) in order to block/unblock IPs, from command line, this works fine: /usr/sbin/iptables --insert INPUT --source ...
adrianTNT's user avatar
  • 1,177
1 vote
0 answers
730 views

Is there a way to check "boot after power loss" BIOS configuration from CLI?

Is there a way to check from CLI under linux (Debian based) how the BIOS is configured for "boot on power loss" ? I need something similar to Check `Restore on AC/Power Loss` from CMD/...
Kraal's user avatar
  • 131
0 votes
2 answers
146 views

Windows "reg.exe" complaining missing user right when using "save" subcommand

When using "reg.exe" on the command line, when using the "reg.exe save" subcommand, i get the error message... "FEHLER: Dem Client fehlt ein erforderliches Recht." which ...
White-Gandalf's user avatar
0 votes
1 answer
2k views

resize "shrink" an .img file from the command line

Shrink an .img file from the command line I need to be able to shrink the .img for use on other drives. I can do this using gparted, but do not always have a GUI, so I want to translate the gparted ...
posop's user avatar
  • 257
1 vote
1 answer
2k views

Running different PHP CLI version depending on working path

I set up PHP-FPM to have different versions of PHP for different folders. This was necessary due to legacy code and was achieved using the apache's .htaccess. My question is: does anyone have a simple ...
bilogic's user avatar
  • 154
1 vote
0 answers
50 views

In program wipe, what does the number in parentheses mean?

In program wipe, what does the number in parentheses, after the pass number, mean? I've read through the man page several times and cannot find an explanation. Manual page for wipe
wtftech's user avatar
  • 51
0 votes
1 answer
782 views

Docker Hub login with Personal Access Token fails

Windows 11 hub.docker.com I setup Two-Factor Authentication and generated Personal Access Token (PAT) Docker Desktop is running. cmd.exe docker login --username <email for my account> Password: ...
BaltoStar's user avatar
  • 217
5 votes
2 answers
5k views

How to reset the password for an HP iLO5 account via CLI?

I was scouring Google for a CLI command to reset the password of HPE iLO 5 accounts but didn't get any proper response. UI solutions to reset the password or other tooling don't help me in this ...
Alex_P's user avatar
  • 203
1 vote
1 answer
3k views

Why does docker-compose issue the "wrong" exit code when errors occur?

I created a bash script to automate a borg backup of a running docker container. Before the backup is started, the container should be paused. The script should be executed only after the container ...
Nico's user avatar
  • 13
1 vote
1 answer
3k views

How to capture USB traffic using Wireshark in linux CLI?

I've found (hopefully) all I need in order to setup Wireshark and usbmon kernel module - including allowing a non-root user to capture USB traffic: https://www.wireshark.org/docs/wsug_html_chunked/...
tishma's user avatar
  • 203
0 votes
1 answer
3k views

I am creating a tun interface with sudo ip tuntap add dev <interface_name> mod tun, but it's not receiving packets when I ping it?

Here are my command when I set up the interface: sudo ip tuntap add dev router0 mod tun sudo ip addr add 10.0.0.138/24 dev router0 sudo ip link set dev router0 up Here is the output of ip addr show ...
Happy Jerry's user avatar
0 votes
0 answers
2k views

Appcmd.exe: How to set config the virtual directory by using it parent path?

Using Appcmd.exe, I am trying to change the configuration of the virtual directory using its parent path "IIS://localhost/w3svc/5/ROOT/Site123" where, 5 - is the parent site ID, Site123 - is ...
Sarath Kumar's user avatar
0 votes
1 answer
23 views

Globing patterns

How can I make a command string work using globing patterns also in the given arguments? powershell.exe -c "&'c:\wind?ws\System32\more.com' C:\path\to\something.txt | findstr 'something'"...
jagghy's user avatar
  • 3
1 vote
2 answers
75 views

What program is being executed upon time command?

In my terminal in Ubuntu, I want to execute the time program with option -v, but it fails: $ time -v ls -v: command not found However if I specify the path /usr/bin/time of the program as such, it ...
Louis Coulet's user avatar
0 votes
1 answer
23 views

Ubuntu CLI Drive removed

I recently added a drive to my server. However, I check my computer this morning to find the drive doesn't show up on NTFS and I noticed that all folders and files were gone from that mount point on ...
Jacobta47's user avatar
0 votes
2 answers
746 views

Is it possible to connect to a user session and see its output in Linux?

I am replacing a windows app with linux command line app. It is supposed to output simple statistics so user can check if the app is alive. In windows it is run 24/7 and you can connect to a desktop ...
Boppity Bop's user avatar
-1 votes
2 answers
80 views

"Remember" the CLI commands you ran for a server [closed]

Assume you have a third party program running on a server. To configure it, you log in, apply some CLI commands and leave again. Every time you do this, you also copy and paste the commands to some ...
J Fabian Meier's user avatar
0 votes
1 answer
2k views

Execute sequence of commands in fortinet

I would like to execute three commands in a fortinet firewall, the commands are: #To enter in the config mode: config vdom #To select the virtual domain: edit "name" #To see the info I want: ...
aldegalan's user avatar
1 vote
1 answer
391 views

When I execute a script in crontab the output is in a different language

I am executing a script in a crontab that writes a log, when I run it as root, the log is written in spanish. But when I run it in the crontab, the output is in english. Is there a way to run the ...
aldegalan's user avatar

1
2 3 4 5
32