Top "Command-line" questions

A command line is a string given to a command interpreter that tells it actions to take, such as running programs or copying files.

https connection using CURL from command line

I am new to Curl and Cacerts world and facing a problem while connecting to a server. Basically, I need …

curl ssl command-line https certificate
how to change directory using Windows command line

I'm using cmd.exe (C:\WINDOWS\System32\cmd.exe) and I have to change my current directory to "D:\temp" …

windows command-line cmd command-prompt
Restore a postgres backup file using the command line?

I'm new to postgresql, and locally, I use pgadmin3. On the remote server, however, I have no such luxury. I've …

postgresql command-line backup restore
git undo all uncommitted or unsaved changes

I'm trying to undo all changes since my last commit. I tried git reset --hard and git reset --hard HEAD …

git command-line undo git-reset
How can I pass an argument to a PowerShell script?

There's a PowerShell script named itunesForward.ps1 that makes iTunes fast forward 30 seconds: $iTunes = New-Object -ComObject iTunes.Application if ($iTunes.…

powershell command-line automation parameter-passing itunes
grep, but only certain file extensions

I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types. …

linux unix search command-line grep
How to prevent auto-closing of console after the execution of batch file

What command can I put at the end of a batch file to prevent auto-closing of the console after the …

windows command-line batch-file
Use grep --exclude/--include syntax to not grep through certain files

I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I …

unix search shell command-line grep
How do I send a file as an email attachment using Linux command line?

I've created a script that runs every night on my Linux server that uses mysqldump to back up each of …

linux email command-line
How to iterate over arguments in a Bash script

I have a complex command that I'd like to make a shell/bash script of. I can write it in …

bash command-line