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).

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

Fork A Repo via GitHub API by curl

How to fork a Repo via GitHub API? I'm looking at GitHub Fork API doc at https://developer.github.com/v3/repos/forks/#create-a-fork and I'm quite confused as how to do it. Create a fork Create ...
1 vote
1 answer
13k views

Pass Variable into CMD

I have setup a script and tested that it work with user input via set /p but now I want to pass that variable automatically to the cmd. Script w/ user input: @ECHO OFF set /p id="Enter Rom: " ...
0 votes
3 answers
1k views

What Linux distribution to a server on an old PC

I have an old PC with 2G RAM, 30G SATA HDD with a pentium II processor. I wonder what Linux distro to make my own server ? This server will be used for: gcc/g++ with vim/emacs I don't want any GUI ...
1 vote
1 answer
156 views

CMD Not Running 2nd Command ( & ) till first program is exited

I'm trying to start two programs simultaniously via CMD. I'm more used to linux, normally I would create 2 commands in a script and just use & or ; - but it doesn't seem to be working I've ...
1 vote
4 answers
6k views

How to make a batch file a task switcher?

How to make a batch file a task switcher? With windows XP and Windows 7 batch files... The batch file is: cls @echo off echo 1 start /normal c:\windows\system32\taskmgr.exe echo 2 pause ...
1 vote
3 answers
7k views

Changing default terminal of Codeblocks 13.12 in Windows

I seem to be at a dead end here. I cannot change the terminal for Codeblocks on Windows, although it is a cakewalk in Linux. The option is greyed out. Running as admin doesn't work also. The box ...
0 votes
0 answers
173 views

Connecting two PCs with laplink cable without additional SW on one of them

I have an old laptop running Windows 95, a quite clean installation. Its floppy drive recently died and since it has no CD drive, ethernet or USB, I am almost out of options how to get data into it. ...
11 votes
4 answers
48k views

Telnet won't run from cmd prompt in windows 7

Edit:I am running windows 7, 64 bits. I have Telnet Client installed, and if I go to c:\windows\system32 i do find the file "telnet.exe"; if I click it, telnet runs perfectly. However, if I type ...
0 votes
2 answers
1k views

Get path to applescript stored on iCloud

I wrote a shell script which calls an applescript to do some work. The applescript is in iCloud, so I'm manually writing the path to the document storage location... osascript ~/Library/Mobile\\ ...
0 votes
2 answers
13k views

Ambiguous redirect error for simple echo

I have come across an oddity when performing a simple echo command. Can anyone explain what's going on? Here's the scenario, there are exactly three files in a folder and I want to replace their ...
1 vote
1 answer
24k views

How to remove environment variable

I am use Windows 10 pro. I try to run other Tomcat instance, but I cannot control config (%CATALINA_HOME%). This is systempropertiesadvanced (hasn't CATALINA_HOME variable): I try to echo by cmd (...
0 votes
0 answers
284 views

Automate the comparison of corrupted files

After an unfortunate CHKDSK analysis which corrupted many files on a 3TB HDD (erroneously detected as 746 GB, probably because of a USB2 controler being incompatible with capacities over 2TB), I would ...
0 votes
1 answer
685 views

List of directory tree of multiple files

I am trying to compile a list of all the files in four directories, each with a different path. I have the following code, and it is working, but not how I want it to @echo off tree d:\directory > ...
1 vote
1 answer
779 views

Move directory contents up one level without using mv/cp/find/

Often, after downloading and uncompressing a compressed folder, one ends up with a folder structure like this: . └── downloaded └── downloaded ├── a ├── b ├── c └──...
1 vote
1 answer
5k views

WinSCP Commandline Private key

What I am trying to so is: Open a WInSCP-Session using a private key instead of a password. The simple Password-Approach works: WinSCP.exe root:[email protected] But the next step, using the ...
178 votes
3 answers
674k views

Clear windows command prompt screen using keyboard shortcuts

Is there any way of clearing the command prompt screen in windows using keyboard shortcuts?
3 votes
1 answer
497 views

Finding PowerShell Cmdlets equivalent to GUI actions (cross post) [closed]

DISCLAIMER: I've read on the meta that cross-posting is OK if one is stil looking for an answer. So the following is a duplicate of a question on StackOverflow even though it is probably more ...
0 votes
0 answers
1k views

adobe acrobat pro xi save as PDFs optimized using command line?

I have a directory I would like to reduce in size that contains about 4,570 files. I have Adobe Acrobat Pro and the Save As PDF optimized seems like it's doing a good job but obviously I can't do ...
2 votes
0 answers
466 views

Is there a CLI to list or download documents not locally cached in iCloud drive?

I have a symbolic link of ~/Library/Mobile\ Documents/com~apple~CloudDocs in my home directory. My iCloud Drive is larger than my Mac's SSD, so I can only have some files downloaded locally at anytime....
1 vote
1 answer
191 views

Calling terminal.app with the commandline it should execute

I use Lazarus IDE to generate some content. Inside it I can set up external commands. I can configure "Program name" and "Parameters" I would like to set it up, so I from inside the software can ...
-1 votes
1 answer
932 views

why wget can't download from this server?

using win10 can download link with IDM & chrome I get this errors. is there anything wrong C:\Users\alihani>cd C:\wget-1.19.1-win64 C:\wget-1.19.1-win64>wget http://rgwha1.elcld.com/...
1 vote
0 answers
39 views

Getting mmap() error when extracting 7z files

Every time I run 7z x test.7z Or any other command using 7z I get Can't load '/usr/lib/p7zip/7z.dll' (dlopen(/usr/lib/p7zip/7z.so, 6): no suitable image found. Did find: /usr/lib/p7zip/7z.so: mmap()...
0 votes
1 answer
306 views

How can I get a list of file that match a list of regular expressions?

I want to see what is not being backed up using regular expressions. The list is here: https://support.code42.com/CrashPlan/4/Troubleshooting/What_Is_Not_Backing_Up#Admin_Excludes I tried $ cat | ...
9 votes
1 answer
1k views

Force Windows use .EXE on PATH rather than CMD.EXE internal command

When I execute a command with the same name as an internal command, instead of searching in the path Windows simply uses the one found in CMD.EXE. For example, MKDIR is an internal command built into ...
1 vote
1 answer
5k views

How to open a folder on notepad++ using windows command line?

I wonder if there is a way to open a folder in notepad++ from command line on windows..I can open a single file, but i want to know how to open folders as workspace (not from notepad++ dashboard) but ...
2 votes
3 answers
102k views

Pass parameters via command line argument to .exe

How can I pass parameters from cmd prompt ?? I am trying to follow the following instructions: For information about usage and parameters, simply run PGRIdleStateFix from the command prompt. The ...
0 votes
0 answers
416 views

Tmux independent pane switching

I am wondering if it is possible to have a shared tmux session which has a window with multiple panes that the users can switch between independently. For example, user Alice should be able to have ...
0 votes
1 answer
501 views

How to give custom name to executable file formed by compiling CSharp code at command Prompt?

I am using Windows 10 and Visual Studio 2017. I have created a project HelloCSharp. My project location is: C:\Users\Sonevol\source\repos\HelloCSharp I go to HelloCSharp folder in which I have ...
1 vote
0 answers
117 views

Replacement of sudo in window without using third party tool

Is there thing in windows to run a command as an administrator from command line. I have a script and inside that I want to run following command as an administrator. C:\User\Admin\assemblies\nssm....
11 votes
2 answers
20k views

How can I reset windows powershell/command prompt, like reset in bash?

When I use vagrant on Windows I will sometimes find that newlines aren't respected properly. This is typically after doing a vagrant ssh. So text ends up looking like This machine with the name '...
21 votes
2 answers
5k views

What is the function of the asterisk as a standalone command in Unix?

I was messing around in terminal on Red Hat Linux, and when I typed the asterisk (*) followed by return, and it executed one of the programs in my directory. Why? My best guess is that Unix treated ...
16 votes
2 answers
71k views

Can I force a greater screen brightness from Windows Command Prompt

I have a Sony Vaio laptop, and it runs windows 7. I know I can adjust screen brightness from the control panel, but I want to force it to be even brighter. Is there a hack, or a way to do this from ...
0 votes
2 answers
75 views

delete old dir, make new empty dir

The single bash command >| foo creates an empty file foo, no matter if it was previously nonempty, or empty, or missing. (It fails if it was read-only, or a directory.) Is there a similar single ...
0 votes
1 answer
311 views

Delete matching directories in all subdirectories

How can I remove all run-*.achilles directories in all of my subdirectories under Linux? I tried find /path -name run-*.achilles -type f -delete but it doesn't work.
-1 votes
1 answer
800 views

Dealing with Ctrl+Z in Unix

While completing an assignment on Unix, I accidentally pressed Ctrl+Z and the program got terminated (suspended). Afterwards when I try to access it again, I am getting the message 'permission denied'....
5 votes
0 answers
621 views

How I get my command prompt to show just the name of the folder I'm in (not the whole path))

In a command prompt window (terminal), how can I get my prompt to be just the current folder? e.g. prompt $p $g gives: C:\Users\Robin > But I want it to just show: Robin > UPDATE: As @...
1 vote
1 answer
2k views

Trying to understand the “w” command in macOS

Currently, I am learning some UNIX command and encountered several unexplained questions. Thanks for your answering. When I run the command w from the terminal, I got some messages shown in the ...
2 votes
1 answer
1k views

Making log output more readable in terminal

I'm currently developing with Wordpress and monitoring its debug.log file which updates on every page re-load. If there's an error, it will add those lines to the debug.log on refresh. The three basic ...
0 votes
1 answer
92 views

How to check size of a directory given by user as an argument?

I want to get the size of a directory given by user as an argument. Example: read -p "Enter the directory" target du -k $target If user gives path as ~/Documents/dir, I am getting error msg: du: ...
2 votes
2 answers
88 views

Is there a way to open non-runnable files directly from CLI

Let's say I have file without execution permission. Now a quick way to open such a file over the CLI is to use xdg-open which uses the system default to open a specific file. Is it now possible to ...
0 votes
1 answer
1k views

Do OS GUI's have a different shell than the command line interpreter?

This is a very general question but I am having a difficult time finding clarification. My question is: do OS GUI's have a different shell than the command line interpreter? When I was reading about ...
0 votes
1 answer
1k views

How to expand disk space for standard user in kali linux?

I have two users in my linux device. I'm using kali rolling 2016 edition. I usually use my standard user profile.After installing some softwares it's showing that there is problem in storage ...
0 votes
1 answer
272 views

Is it possible to run a VirtualBox virtual machine inside a terminal?

I've downloaded an application packaged as a Virtual Machine from this website; basically, these images are higly specialized contained systems that acts as a server for a specific application, in ...
2 votes
2 answers
12k views

Stop and disable windows service from command line [duplicate]

I've tried the top comment here Disable a Windows service from the command line but when I restart the computer the service is back up and running again. If I manually go into services.msc and change ...
1 vote
0 answers
5k views

How to remove a double file extension?

I had a terrible thing happen to Win 10 that resulted in me deleting my favor Music Folder. I was able to recover all music using Recuva. However, once all songs were restored the program added an ...
7 votes
3 answers
11k views

What is the command line switch for Far Manager to open in a specified directory?

What is the command line switch for Far Manager to open in a specified directory?
0 votes
2 answers
1k views

Command to search ffmpeg directory pathway

I'm new to ffmpeg and I am trying to convert some avi videos to uncompressed avi files. The problem is every time I run the command: ffmpeg -i "Dip 1.avi" this error message appears: Dip 1....
1 vote
1 answer
132 views

The "+" and "-" signs next to the job number

The bash man page says In output pertaining to jobs (e.g., the output of the jobs command), the current job is always flagged with a +, and the pre‐ vious job with a -. A ...
9 votes
4 answers
10k views

Efficiently change a single file extension in Windows

What is the simplest way of changing a file extension (without messing around with folder view options)? Oftentimes I have to quickly change the extension of a single file on a Windows PC. I don't ...
3 votes
1 answer
8k views

restart zebra printer via powershell?

I want to restart zebra printer via command line , not the printjob , i want restart the device remotely there is cmdlet in PowerShell for restart the servers,The Restart-Service cmdlet sends a stop ...

1
131 132
133
134 135
260