Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

An interface for interacting with a computer using typed commands in a text-oriented environment, as opposed to a graphical user interface (GUI).

0
votes
2answers
12 views

“php -f” doesn’t run code but only shows file contents

Running Debian 9 and PHP 7.3, trying to execute a file with the php -f hello.php command. Instead of echoing hello it outputs the source code. The full code is #!/usr/bin/php <? echo 'hello'; ?>...
0
votes
0answers
11 views

ffmpeg image input use odd or even at input level in Windows

There are several solutions to select the every odd or even image at the filter level and they all work. But in my case I have an input of 15360x8640 .jpg files where it makes quite a difference ...
0
votes
0answers
6 views

XAMPP command line for port forwarding to allow login script

I am using XAMPP on my Mac and have created a login script which allows my IDE, a default profile browser and XAMPP to launch if I am planning to try and develop anything for the web. I want to ...
1
vote
1answer
15 views

RDP connection by making it .bat file

I want to automate the RDP connection by making a bat file. But it still keeps on asking me the password. I created two files 1.hello.cmd 2.hello1.bat In hello.cmd I had put cmdkey /generic:"...
0
votes
2answers
30 views

How to find unique lines from each file given 3 text files

I have 3 text files with some unique IDs and I want to keep only unique IDs in each text file. Let's say there are 3 files (A, B and C). If an ID of "abc" appears in A and B, it needs to be removed ...
0
votes
1answer
22 views

how can I get the yes command to force overwrite and to do so with new lines?

I would like cp to prompt before overwriting so I am using -i. (I might sometimes use an alias for cp, or similar, so cp always occurs with -i). I may want to say overwrite all. I know that's the ...
-1
votes
0answers
23 views

don't understand the difference between command prompts [on hold]

I don't understand how cmd clients work and might misuse terminology I have a windows server, and there is an app, let's call it ABC_soft, on this server that comes with it's own command prompt. To ...
0
votes
0answers
21 views

List size of directories but sort by time

How can I list the size of directories but sort the output by the time stamp? I have tried: du -skht * du -skh * | sort -t but both do not have a -t option. And: ls -ltr does not give me the size ...
0
votes
1answer
38 views

Command line prompt to unpin folder from file explorer quick access

A sharepoint path that i try to access via file explorer keeps crashing my file explorer. Is there a command line prompt to unpin (delete shortcut???) from quick access? Anyone heard of sharepoint-...
0
votes
0answers
37 views

how to run bat command in administrator mode?

I run bat command to start application in jenkins following way bat ''' START /WAIT AtmelStudio MyProject.atsln /build manufacture_test /out manufacture_test.log START /WAIT AtmelStudio ...
1
vote
0answers
27 views

grep process is changing it's PID continously

I am using grep to find some 'abcd' in large file. So it is running for quite some time but the PID of this process is changing continuously. I am not able to understand why ? Here is the sample top ...
0
votes
0answers
15 views

Given a QR code for a TOTP secret, how would I format an argument to openconnect so that I didn't get prompted for a challenge / response

I have a QR code for setting up, say google authenitcator to generate TOTP codes. I've viewed the text value of the QR code and it looks like: otpauth://totp/<user>@<host>?secret=...
0
votes
0answers
19 views

How to delete (rm) files on a CIFS mount when filename contains a colon (:) or other special characters?

On my LAN, I have a Synology NAS with encrypted shared folders. They are mounted on my Debian computer through CIFS (NFS is only available for unencryted shared folders). //<NAS_IP_ADDRESS>/<...
1
vote
2answers
25 views

What's the difference between the keywords 'python' and 'python3' in command lines?

I've seen two ways to open a python script using the commandline, these are: python foo.py and python3 foo.py I know, there are python2 etc, but what does python without a version do then and ...
1
vote
1answer
18 views

Simple Batch Method to Output Filename + CRC32 on One Text Line

My batch skills are limited. To produce results for many files, I use DIR /a-d /s /b > dirlist.txt. I import dirlist.txt into Excel (column A), and use that to produce file-by-file commands (in ...

15 30 50 per page