tagged [command]

How do I send a file as an email attachment using Linux command line?

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 my MySQL databases to .sql...

21 Jun at 10:52

Starting Visual Studio from a command prompt

Starting Visual Studio from a command prompt I have three different versions of Visual Studio installed on my machine, [Visual Studio 2003](http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_...

26 May at 06:51

Convert line endings

Convert line endings I have been using `d2u` to convert line endings. After installing Puppy Linux I noticed that it does not come with `d2u`, but `dos2unix`. Then I noticed that Ubuntu is missing bot...

22 May at 20:59

Passing an enum value as command parameter from XAML

Passing an enum value as command parameter from XAML I want to pass an enum value as command parameter in WPF, using something like this: `SearchPageType` is an enum and this is to know from which but...

17 May at 12:46

ansible : how to pass multiple commands

ansible : how to pass multiple commands I tried this: which works, but I was hoping for something neater. So I tried this: from: [https://stackoverflow.com/questions/24043561/multiple-commands-in-the-...

11 May at 22:26

Getting an error cp: cannot stat when trying to copy files from one folder to another

Getting an error cp: cannot stat when trying to copy files from one folder to another I have this directory called "mock", which contains 3 directories. I am trying to copy all the items from "mock" d...

23 Mar at 15:27

How to "grep" out specific line ranges of a file

How to "grep" out specific line ranges of a file There are often times I will `grep -n` whatever file to find what I am looking for. Say the output is: If I want to then just extract the lines between...

15 Mar at 13:32

Install a Windows service using a Windows command prompt?

Install a Windows service using a Windows command prompt? I want to install a Windows service using a Windows command prompt (not the Visual Studio command prompt). How do I do this?

1 Feb at 15:23

How do I get the find command to print out the file size with the file name?

How do I get the find command to print out the file size with the file name? If I issue the [find](https://en.wikipedia.org/wiki/Find_(Unix)) command as follows: It prints out: I want to 'print' the n...

18 Jan at 17:21

How to use 'cp' command to exclude a specific directory?

How to use 'cp' command to exclude a specific directory? I want to copy all files in a directory except some files in a specific sub-directory. I have noticed that `cp` command didn't have the `--excl...

13 Jan at 00:0

Laravel 5 – Clear Cache in Shared Hosting Server

Laravel 5 – Clear Cache in Shared Hosting Server The question is pretty clear. Is there any workaround to clear the cache like the above command but without using CLI. I am using a popular shared host...

How can I store a command in a variable in a shell script?

How can I store a command in a variable in a shell script? I would like to store a command to use at a later time in a variable (not the output of the command, but the command itself). I have a simple...

5 Dec at 02:54

Shell command to find lines common in two files

Shell command to find lines common in two files I'm sure I once found a shell command which could print the common lines from two or more files. What is its name? It was much simpler than [diff](https...

30 Nov at 16:10

.NET 6.0 C# "new console template" - how to read CLI arguments?

.NET 6.0 C# "new console template" - how to read CLI arguments? Now that .NET 6.0 is out, what appears to have be a radical update to the default CLI project template is the absence of the familiar bo...

PowerShell The term is not recognized as cmdlet function script file or operable program

PowerShell The term is not recognized as cmdlet function script file or operable program I am implementing a script in powershell and getting the below error. The sceen shot is there exactly what I en...

Php artisan make:auth command is not defined

Php artisan make:auth command is not defined I'm trying to run this command in Laravel 5.2 but it's not working: And prompts with these statements: ``` [InvalidArgumentException] Command "make:auth" ...

12 Aug at 03:45

How can I expand/collapse a diff sections in Vimdiff?

How can I expand/collapse a diff sections in Vimdiff? I've started using vimdiff today, and wanted to do some of the things that I've taken for granted on Windows based diff editors (like expand/colla...

How to get last modified date on Windows command line for a set of files?

How to get last modified date on Windows command line for a set of files? I have been using the following command to get the file date. However, the `fileDate` variable has been returning blank value ...

11 Aug at 10:17

How can I get a list of user accounts using the command line in MySQL?

How can I get a list of user accounts using the command line in MySQL? I'm using the MySQL command-line utility and can navigate through a database. Now I need to see a list of user accounts. How can ...

5 Aug at 20:10

How to run .NET Core console application from the command line

How to run .NET Core console application from the command line I have a .NET Core console application and have run `dotnet publish`. However, I can't figure out how to run the application from the com...

How to install JQ on Mac on the command line?

How to install JQ on Mac on the command line? I need to know the most efficient way of installing JQ on Mac (El Capitan). The code is downloaded to my Mac but I would like to know how I can install an...

How to start MySQL server from command line on Mac OS Lion?

How to start MySQL server from command line on Mac OS Lion? I installed mySQL on my Mac. Beside starting the SQL server with mySQL.prefPane tool installed in System Preferences, I want to know the ins...

3 Jun at 18:3

Skip download if files already exist in wget?

Skip download if files already exist in wget? This is simplest example running wget: but how to make wget skip download if `pic.png`is already available?

How to fix: error: '<filename>' does not have a commit checked out fatal: adding files failed when inputting "git add ." in command prompt

How to fix: error: '' does not have a commit checked out fatal: adding files failed when inputting "git add ." in command prompt I'm trying to add a ruby rails file to my repository in gitlab but it s...

25 Feb at 08:27

Parsing command-line arguments in C

Parsing command-line arguments in C I'm trying to write a program that can compare two files line by line, word by word, or character by character in C. It has to be able to read in command line optio...

22 Feb at 12:20