Stack Exchange Network

Stack Exchange network consists of 174 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

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

1
vote
1answer
19 views

How to not show file path with dir /b /s command in batch file

Is there Any way I can bypass displaying file paths when using the dir /b /s command into a file? Currently, when I run dir /b /s C:\WinPE_amd64 >dir.txt it outputs something like this: C:\...
0
votes
1answer
12 views

append to end to line without newline

When i try to append to the end of a file it creates a new line. Now I have tried to fix this with echo -n but that doenst work. So what am I trying. I'm trying to get the following result: Hello ...
0
votes
0answers
22 views

ceph Jewel ceph-deploy mon create failing

I'm trying to make a ceph cluster with 3 nodes on Ubuntu 16.04. I followed this and this guide but I am stumbling on the ceph-deploy mon create-initial part. I've also tried ceph-deploy --overwrite-...
1
vote
0answers
14 views

Wrap the history number - reset history number without losing history

I display the history number as part of my prompt, e.g., {!1123}(j:~)$ ls /some/long/and/hard/to/type/path so that I can do it later with !1123. My HISTSIZE and HISTFILESIZE are both 200, but this ...
0
votes
0answers
18 views

Open exe from Windows Registry doesn't work

I need to start my application on Windows startup. I used this command to set the registry: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "ProgramName" /d "...
0
votes
1answer
32 views

How do I find files containing “string A” and NOT containing “string B” and output their names into a file?

I was looking at this other question, but wasn't sure how to combine these queries together. I started off with this, but it doesn't seem to work: findstr /S /M "string A" *.vb | findstr /S /M /V "...
3
votes
1answer
28 views

find or ls does not list all files in a folder in MacOS (HFS+)

ls or find command do not seem to locate all files located in a specific folder. I'm running a Mac (under El Capitan 10.11.6 (15G21013), 500GB SSD, HFS+). In one of my folders, where I have about 700k ...
0
votes
0answers
12 views

Save chrome's state at specific point or setup chrome account from command line entirely

When you sign in to chrome, you can save several thins like extensions, bookmarks, tabs, passwords etc. So whenever you sign to your account elsewhere, you can have the same setup as you worked on ...
1
vote
1answer
21 views

wmic output empty when run from batchfile, but contains info when run from cmd

I have this wmic command which finds out the PID of my process and works fine from cmd, but refuses to produce output when executed in a bat-file: wmic /output:process.pid process where (Name like '%...
2
votes
2answers
46 views

Windows 7/10 command line show running Applications/windows

I know the command tasklist is able to show running processes. What I want the command line to show only running applications. Is there such a command on Windows or is there a way to get this list ...
1
vote
1answer
17 views

cmd git command runs git installer

I used git for years now and recently after updating windows and git each time I type git commands in cmd window, it runs git installer. git status ► runs git installer instead of showing the status ...
3
votes
1answer
145 views

7za create AES256 password protected encrypted zip of a folder

I want to create an AES256 encrypted zip of a folder. I am on Mac and I want to create the zip file and store it in an external drive. I want to AES256 encrypt the file in case I lose the external ...
2
votes
1answer
26 views

Duplicating stderr output and merge with stderr in bash without changing order

I want to write both stderr and stdout to a log file, and print stderr to the terminal (or default output device). Motivation: I have a command in my crontab, and I want to log all of its output to a ...
0
votes
0answers
12 views

How to open Microsoft Word file on a given monitor and maximazed, via command line?

My desktop computer has three monitors. I want to open a Microsoft Word file via command line, but using parameters that allows me to open the file in maximazed form (ocupping the whole screen) and ...
0
votes
1answer
51 views

Why doesn't find work recursively with a wildcard over SSH? [duplicate]

I'm connected to a CentOS server through SSH from macOS. When I try to find with a wildcard at the beginning, it seems to only search the current directly, no recursion. But if I put the wildcard at ...

15 30 50 per page