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.

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

1564 questions
0
votes
1 answer

Setting the reply address using the mail command

I am running a Fedora Virtual Server I mail one of my users using the following command inside a bash script /bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE Inside Virtualmin I have setup main forwarding so all mail from the domain gets sent to my…
jax
  • 207
  • 1
  • 5
  • 12
0
votes
0 answers

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/Powershell on windows 10 but for linux. I had a look at dmidecode…
Kraal
  • 121
  • 5
0
votes
0 answers

MAMP CGI using specific PHP version for domain but using default PHP version for CLI

I'm using MAMP's CGI PHP so that each site can use its own PHP version... however, the CLI is stuck at MAMP's default PHP version, whichever I have selected. This defeats the whole purpose of me using CGI (rather than Module), because I still have…
0
votes
2 answers

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 most probably in english would read: "ERROR: The Client is missing a necessary…
0
votes
1 answer

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 step below into parted to be verbose, here is my…
posop
  • 247
  • 2
  • 10
0
votes
1 answer

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 Password: Typed characters are not visible but I'm sure I'm…
BaltoStar
  • 197
  • 3
  • 14
0
votes
1 answer

I am creating a tun interface with sudo ip tuntap add dev 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 dev router0 8: router0:…
0
votes
0 answers

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 name of the virtual directory. Below is the cmd I have…
0
votes
1 answer

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'" -> this works This is what I would like to do, for…
0
votes
1 answer

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 the server. Note: I am using Ubuntu CLI 20.04.4…
0
votes
2 answers

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 via RDP and see whats going on in the console…
Boppity Bop
  • 752
  • 3
  • 11
  • 34
0
votes
1 answer

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: get router info routing-table static But I need to do it…
aldegalan
  • 43
  • 7
0
votes
2 answers

Downloading a file using Windows CMD line with curl/wget

I have a client [Windows 10 VM] and a server [say a linux based VM]. I have Apache running on the Linux Server. I have a file on the linux server that I want to download on my windows client. I want to do it in 2 ways from the windows CMD: -Using…
Software Fan
  • 101
  • 1
  • 2
0
votes
1 answer

Nginx/proxy not working properly

I recently uninstalled apache2 for Nginx I'm trying to listen on 88, 808 and 888 for my sites and redirect different subdomains for each (and another domain to another server). the problem is that Nginx is giving bad gateway for all proxied requests…
0
votes
2 answers

How to configure IP address to an Huawei AR158E interface?

In my work we saw one old Huawei AR158E router gathering some dust and I'm playing now with it seeing if I can give it some new purpose... So far I have been able to configure some VLANs and a VLANIF in Ethernet0/0/2 and works flawlessly... But I…
k.Cyborg
  • 121
  • 1
  • 8