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.

156 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
2k views

Configure NGINX by passing CLI parameters instead of config file

I am looking for a way to change some config parameters dynamically before running NGINX. Perfectly by using command line parameters. I want to write a bash script that takes for example two ...
Jimmix's user avatar
  • 141
3 votes
0 answers
2k views

Login to Windows 10 through OpenSSH Server As Regular User gives Administrator Privileges

I have installed OpenSSH server on a Windows 10 system and added my public key to the file at C:\Users\foo\.ssh\authorized_keys. However, when I log in to the Windows account using SSH and created a ...
Athena Wisdom's user avatar
3 votes
0 answers
80 views

`azure site list` throws TypeError

Steps: azure account download azure account import MyFile (where MyFile is the downloaded publish file) azure account list (output is normal and correct) azure site list info: ...
epalm's user avatar
  • 143
3 votes
5 answers
5k views

Search and delete lines matching a pattern along with comments in previous line if any

I have a requirement to write a shell script in csh to search and delete lines matching a pattern along with comments in previous line if any. For example if my file has the following lines Shell ...
user avatar
2 votes
1 answer
6k views

How to install packages from command line on Suse

What is the Suse version of apt-get or yum? Or how do I get one of them installed in order to install software packages from the command line? A fairly intense session of googling suggests that it may ...
Bazer Con's user avatar
2 votes
0 answers
661 views

Not able to access the console when I install a guest VM on a KVM

I am trying to write a script for installing a guest VM on a KVM using virt-install. I have a knoppix live cd based iso. The underlying OS is Debian 6.0.2. I am using this command to install the guest ...
Shreyas DG's user avatar
2 votes
1 answer
2k views

CentOS command not found

When I login to my CentOS 7 Server I get a couple of errors. Similar command is: 'tty' bash: ls: command not found... Similar command is: 'lz' /usr/libexec/grepconf.sh: line 5: grep: command not found ...
Jonas Heinze's user avatar
2 votes
0 answers
664 views

systemd-networkd: Set DNS via CLI for managed link

I want to set the DNS for an interface managed by systemd-networkd via cli. The file system is mounted read-only, so is there way to achieve this without manipulating any files? I tried e.g.: ...
Malte's user avatar
  • 21
2 votes
1 answer
445 views

How do I enable or bond the 80MHz channels on a Cisco 3502i AP in autonomous mode?

I have a Cisco AIR-CAP3502I-A-K9 using F/W ap3g1-k9w7-xx-153-3.JF5 in autonomous mode. I have tried everything I can think of (Google has NOT been my friend) to configure the 5GHz radio to use 300MBps?...
John Schultz's user avatar
2 votes
0 answers
415 views

get FULL hardware configuration of a VM from powercli

I want to export the complete hardware configuration of a vm to the console via PowerCLI. Get-VM seems to only have limited information based on a Get-VM xxx | Get-Member check. In vCenter, if you ...
DanMan3395's user avatar
2 votes
0 answers
89 views

Stopping a windows service via command line, where the service has symbols in it

For whatever reason the company who installed this service used the same name for the display and the service name. Which is this format (not exact wording to protect them) "Blah® Blah™ Agent ...
Daniel's user avatar
  • 21
2 votes
1 answer
253 views

cannot send long path filename (UNC path) to printer

i'm using long path names with UNC (UNI), for example: \\?\c:\tmp......\file1.prn but when i try to send the file to a printer on windows command-line, for example with copy/print command, it ...
gadh's user avatar
  • 21
2 votes
1 answer
2k views

Configuring a DELL storage array with both controllers set to the same address

I've gotten hold of a used Dell PowerVault MD1000 with two MD3000i (aka AMP01) controllers, both of which are configured to the same address. However my attempts to configure them - or indeed perform ...
Isac Casapu's user avatar
2 votes
1 answer
4k views

VSFTPD not behaving in command line, but fine in GUI (Filezilla)

I'm trying to use VSFTP 3.0.3-3ubuntu2 on an Ubuntu 16:04.1 install. I have done this so that an application on another server can run an automated script to pull files from the FTP server triggered ...
Michael's user avatar
  • 121
2 votes
1 answer
601 views

Fully fleshing out a local user account added via command line

I am working at a customer site commissioning a bunch of Windows 7 systems that were just delivered. The systems were imaged with a basic setup that included all of the main software needed for the ...
Peter M's user avatar
  • 1,046
2 votes
0 answers
57 views

Is there a single Linux commandline tool that displays network connections AND processes

Bascially, I'm looking for a combination of iftop and nethogs in a single tool. iftop shows information on the network layer: source/destination target and ports, throughput and all that in a nice ...
1N4001's user avatar
  • 168
2 votes
0 answers
2k views

config variable php_suffix does not match

I have a php instance on Webuzo (centos-6-x86_64.openvz) in /usr/local/apps/php54/. It already has pecl and phpize in /usr/local/apps/php54/bin/. When installing igbinary with command `/usr/local/...
RedGiant's user avatar
  • 211
2 votes
2 answers
1k views

How Can I Create Multiple Files of a single file in multiple Directories?

Hello I am trying to create multiple copies of a single file in multiple directories? for example I have 6 folders with a single file in each folder named lp.html, How can I run a batch to create 100 ...
Jesus Landra's user avatar
2 votes
1 answer
798 views

Is it possible to execute remote GUI process locally in Windows?

I know that Linux can open - for example - a firefox window in a local pc as if it was a window opened remotely. Can I do the same thing in windows? N.B. I use PsExec but it can launch a program from ...
ITAlin's user avatar
  • 77
2 votes
0 answers
144 views

Is it possible to set up a pptp server in windows via console?

I want to be able to turn a machine into a pptp server from commandline so that it can be scripted, is this possible?
Ryan's user avatar
  • 21
2 votes
0 answers
1k views

Controlling rdp listener connections from command line

RPD on my windows 2003 server sometimes becomes incapable to accept connections. But netstat shows that port is listened. c:\> netstat -ano | find "3389" TCP 192.168.1.1:3389 0.0.0.0:0 ...
hraphrap's user avatar
  • 237
2 votes
1 answer
387 views

Configure incoming connection (VPN) on Microsoft Hyper-V 2008 via command line

In both Windows 7 and Windows Server 2008 (R2), it is extremely easy to allow incoming connections (VPN). Just go to overview of network adapters, click 'file' and click 'new incoming connection'. ...
Jan Kramer's user avatar
2 votes
1 answer
3k views

How to change the proxy settings for the Network Service account from the command prompt?

Currently, I am only aware of the following command: C:\>bitsadmin /util /SetIEProxy NetworkService MANUAL_PROXY 1 92.168.0.200:8080 NULL But, it has the following defects: It is deprecated It ...
mark's user avatar
  • 755
1 vote
0 answers
727 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
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
1 vote
2 answers
1k views

Push out Commands to all Domain PCs

I'm looking for a way to push out commands to all workstations. The scenario is as follows: I often go to environments that I am not familiar with to audit the network. Part of that is a network scan, ...
Juan BrickTech's user avatar
1 vote
0 answers
387 views

Some PHP extensions available only for root user

I have installed PHP 7.4 (from remi) on CentOS 8 since I need that version on CLI. The issue is with extensions, when I check modules (php -m) as root user I for example have redis enabled there, but ...
mixerowsky's user avatar
1 vote
0 answers
572 views

using start /wait for a headless process in a batch file - any way to show the process is running?

So I have a large batch file, and in the middle it hits a start /wait command to run a silent install of an MSI. I'd like to have some animation or something to indicate that the batch file is in fact ...
Luke's user avatar
  • 587
1 vote
1 answer
249 views

Disconnected disks-Access denied, showing in explorer, but not showing in DISKPART and unable to remove them

I have Virtual machine (terminal WIN2012), which seems to have under some users connected some OLD and NO longer connected disks (local or network drives), which are not accessible for anybody (even ...
Jozef's user avatar
  • 79
1 vote
0 answers
152 views

Difference between 'sudo gem install something' and 'gem install something'

In this case I'm using gem as an example, but I think it can be extended to any other program. I use a Mac and I installed rails using command gem install rails from directory /Users/myusername/...
borjagvo's user avatar
  • 111
1 vote
2 answers
5k views

How to get URLs for requests currently served by Nginx?

As the title explains, I want to know the URLs for requests that are currently being served by Nginx, all the answers regarding nginx_status endpoint talk about the number of requests, if possible I ...
AL-Kateb's user avatar
  • 351
1 vote
0 answers
762 views

How to create a Sandbox Environment in AWS?

I am trying to create a Sandbox playground in AWS for Users to practice some resources for 30min, after that, all resources should be deleted and account temporary account should also be deleted. I ...
Manish Goyal's user avatar
1 vote
0 answers
68 views

Terminal command to show a specific line extract from the output, along with the full output

I have a build command that outputs a lot of content, and within it, there's a link that I need to copy & paste. So I'd like to be able to do some terminal acrobatics so that this command does ...
Ascendant's user avatar
  • 111
1 vote
0 answers
761 views

How to disable global 2FA policy with CLI

I would like to ask if it's possible to disable the global 2FA policy (everyone need to activate 2FA before accessing gitlab) but I can't disable on the web interface because I can't activate it, it ...
executable's user avatar
1 vote
0 answers
67 views

How do I set up multiple unique accounts via command line?

I have to setup and configure about 60 (+ more in the future) windows 7 embedded PC's with the same settings. Each of these PC's will have 12 accounts on them. Each of the accounts will have their own ...
TTalma's user avatar
  • 11
1 vote
1 answer
3k views

Start/stop windows service as user from command line

How can I start a service from the command line e.g. net start "sql server (sqlexpress2016)" without running with elevated privileges? The short answer is "you can't". But how come then Services ...
LosManos's user avatar
1 vote
0 answers
150 views

PHP daemon shows status of "stopped" - can't run php script in the background

I'm trying to launch a PHP script in the background (Linux/Centos 6.8) by appending the & symbol to the command. However, 'jobs' lists the script with status [1]+ Stopped. Issuing a 'bg 1' to run ...
Ryan Griggs's user avatar
  • 1,063
1 vote
1 answer
810 views

HP Comware 5500 interface status history

How can I check an interface status history (how long a port is down for ?) on a HP 5500 switch? I can have the current status, but want to know history, to track "real" unused ports. Thanks for ...
Remi V.'s user avatar
  • 11
1 vote
1 answer
936 views

Detecting interface name on CISCO ASA configuration

I use the following command to configure the Cisco ASA to allow me query snmp snmp-server host inside 10.20.30.40 community public version 2c I need to automate this task and my question is how to ...
Adassko's user avatar
  • 61
1 vote
0 answers
2k views

Windows 10 Active Directory Administrative Center to manage untrusted domain

In a windows 7 environment, all the rsat tools are able to manage untrusted domains by using the runas /netonly command to launch said tools and connect to the domain. In windows 10 however, the ...
Jessie's user avatar
  • 292
1 vote
0 answers
146 views

how do I set monit to non-daemon mode

I'm trying to get monit to just excite the monitrc script once and then exit. I've tried monit -v -Ic /tmp/monitrc but when I look at the output it says: Runtime constants: Control file =...
whisperstream's user avatar
1 vote
0 answers
325 views

mysql-cli - force quit on timeout / connection drop

I have set timeouts in /etc/profile.d/ to disconnect inactive users using TMOUT and this works great however now I am seeing users just holding their connection open by keeping some foreground process ...
Alasdair's user avatar
  • 571
1 vote
1 answer
125 views

Conditionals in cmd scripts

I'm doing scripting using appcmd. What I'd like to do is check to see if a given site exists and if does perform an action. In this case, delete it. appcmd list app | find "mySite" So, if the find "...
Frank V's user avatar
  • 449
1 vote
0 answers
8k views

AWS security group egress rules for S3

I manually created a new security group using the AWS CLI. I created ingress rules that allow incoming connections only from my company's public IP address using the known ports for SSH (22) and ...
HaroldFinch's user avatar
1 vote
1 answer
252 views

Rename NTFS file to eliminate multiple periods via batch

I at wits end trying to rename NTFS files that have technically legal, but problematic multiple periods in my Windows 2012 Server share Files are dropped in a share that look like this: THIS.IS.THE....
dave_the_dev's user avatar
1 vote
0 answers
2k views

OpenVPN ignoring openvpn.conf, throws unrecognized or missing option

I set up openVPN on Debian, but can't start the service. [FAIL] Starting virtual private network daemon: openvpn failed! Syslog says Options error: Unrecognized option or missing parameter(s) in ...
Moritz Friedrich's user avatar
1 vote
0 answers
62 views

When changing the Win display lang, will builtin CLI tools params / stdout|stderr messages also change?

I need to write a CMD script (other shells are not allowed / available) that will execute on multiple servers with different display languages. When looking at an Windows built in tool, such as ...
bogdan's user avatar
  • 65
1 vote
0 answers
974 views

ssh reverse tunnel port forwarding connection fails

I am able to do a reverse port forwarding through the PUTTY GUI with settings similar to below. Once I apply this setting, I am able to run to the server box and run wget http://localhost:8080 <-- ...
Bigs's user avatar
  • 111
1 vote
0 answers
92 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
Bart Platak's user avatar
1 vote
2 answers
173 views

Why would some folders be invisible on the command line?

I have a webserver which I log into over SSH. Recently, and I don't know what changed to cause this, any directory or symlink named "system" became invisible. After SSHing into the server on the ...
TRiG's user avatar
  • 1,193