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
35
votes
6 answers

KVM Guest installed from console. But how to get to the guest's console?

I'm trying to install a fully virtualized guest (Fedora 14 x86_64) on KVM (RHEL 6), using command-line only (both hypervisor and guest). It goes without errors, and without a tangible result . I'd like to know how to do a text-only installation. So,…
34
votes
6 answers

Is there a Windows command line utility to verify user credentials?

On a Windows platform, is there any command line utility that I can pass a username, password domain name to in order to verify the credentials (or possibly give an error that the account is disabled, doesn't exist or expired)?
wiki
  • 493
  • 1
  • 4
  • 7
34
votes
30 answers

Command line safety tricks

Command line and scripting is dangerous. Make a little typo with rm -rf and you are in a world of hurt. Confuse prod with stage in the name of the database while running an import script and you are boned (if they are on the same server, which is…
deadprogrammer
  • 1,691
  • 7
  • 24
  • 25
33
votes
42 answers

Tools a Unix administrator cannot live without

After administering Unix or Unix-like servers, what tools (command-line preferably) do you feel you cannot live without?
John T
  • 1,059
  • 1
  • 15
  • 19
31
votes
2 answers

Linux/Debian - What does 'pee' in moreutils do?

I recently discovered the 'moreutils' package in Debian (and Ubuntu). It's a collection of convenient unix tools. One of the commands is 'pee'. The man page says: pee is like tee but for pipes. However it's a short man page, I have filed a bug…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
31
votes
3 answers

Non-interactive creation of SSL certificate requests

Is there a way to create SSL cert requests by specifying all the required parameters on the initial command? I am writing a CLI-based web server control panel and I would like to avoid the use of expect when executing openssl if possible. This is a…
dotancohen
  • 2,590
  • 2
  • 25
  • 39
31
votes
11 answers

How to get a list of security updates on the command line in Debian/Ubuntu

In the GUI tool you can get a list packages with security updates. Can this be done on the command line in Debian or Ubuntu? Normally I might use "apt-get upgrade" which would show me what is being upgraded, but I would like to know which ones are…
Stephen Paulger
  • 421
  • 1
  • 4
  • 6
31
votes
4 answers

How do I restart a single website in IIS7+ using commandline?

How do I restart a single website in IIS7+ using commandline only? Same functionality as the circled menu item in the image - but from the commandline. Iisreset does not have any options to deal with individual sites, and I found some ancient…
Kjensen
  • 1,039
  • 10
  • 28
  • 39
30
votes
1 answer

Return only a HTTP status code from curl command

I want to just get a statusCode from CURL command response. When I use this command: curl -I http://uploadserver.ln/1.mp4 I want to just get 200 rather than this long result: HTTP/1.1 200 OK Server: nginx/1.14.0 (Ubuntu) Date: Sun, 01 Jul 2018…
soroush
  • 415
  • 1
  • 5
  • 6
30
votes
5 answers

block all but a few ips with firewalld

On a linux networked machine, i would like to restrict the set of addresses on the "public" zone (firewalld concept), that are allowed to reach it. So the end result would be no other machine can access any port or protocol, except those…
mike
  • 478
  • 1
  • 5
  • 10
30
votes
19 answers

Shell Command for Getting IP Address?

Is there a bash command to find the IP address for an Ubuntu box? I need to find the IP address so I can ssh into the machine later.
opierce
  • 413
  • 1
  • 4
  • 5
29
votes
3 answers

How does one list warnings from the 'mysqlimport' utility?

To start off, this is not about loading data from within MySQL itself, but using the command-line tool "mysqlimport". I am using it to load a CSV directly into a table and need to see the warnings it has generated. I cannot seem to get warnings to…
brink
  • 293
  • 1
  • 3
  • 5
29
votes
5 answers

Best way to remove shutdown command, but keep reboot

I have a raspi type device in a data center, and recently accidentally fat fingered and pasted a shutdown command into the wrong terminal on my screen. Is there a way to keep shutdown -r but remove #poweroff #shutdown -P -H options? I want to keep…
foxtrot22
  • 393
  • 3
  • 5
28
votes
5 answers

How to list all VPC dependencies in AWS CLI?

I want to delete VPC through CLI. But get an error: A client error (DependencyViolation) occurred when calling the DeleteVpc operation: The vpc 'vpc-xxx' has dependencies and cannot be deleted. How can I list all dependencies that prevent me from…
lexsys
  • 2,913
  • 6
  • 31
  • 34
28
votes
6 answers

Linux Command line tool to work with netmasks / CIDR notation

I'm terrible at working out network subnets in my head. Is there some command line tool for linux (ubuntu packages a plus), that lets me put in 255.255.255.224 and it'll tell me that is a /27?
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253