A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.
-1
votes
0answers
27 views
Is it worthwhile to learn unix command in depth? [closed]
I am a Ruby on Rails developer so I am familiar with ruby codes.
I know basic linux commands.
However, I never used sed or awk or other advanced commands.
When I need to process some texts, I use ...
39
votes
4answers
1k views
Create a File in command line with specific size?
Create file using touch command or similar way with exact size required say 14MB as file size.
The use case scenario is to test FTP with various file sizes...
If we can create a file with specific ...
0
votes
3answers
35 views
List All Users on a Windows System via Command Line
I would like a command to list all of the Users in a Windows (Vista, 7, etc.) system, in a way that I can use to iterate through them with a subsequent command.
net user would give me the data for ...
0
votes
1answer
22 views
Changing Windows 7 PATH avriable [duplicate]
I saw this question and answer but this is not working for me.
I am following Python tutorials. There is a section that requires me to change the path variable. I used the instructions in the command ...
2
votes
1answer
43 views
Is it in any way possible to uninstall PowerShell from Vista?
Is it in any way possible to uninstall PowerShell from Windows Vista?
There is no Uninstall option under Start/All Programs.
It's start menu group is actually located under Accessories which is
hard ...
0
votes
0answers
16 views
Windows CMD Copy Command - PRN Files
When I copy prn files to my printer using
copy filename.prn \\PC\Printer
And check the file in the printer queue it comes as Local Downlevel Document
Is there a way to specify a proper filename
1
vote
2answers
28 views
How do I recover from “repair pending” error in SFC?
I am trying to fix an issue with Windows registry and services. I tried running sfc command but this is the error message I get?
C:\Windows>sfc /scannow
Beginning system scan. This process will ...
0
votes
1answer
29 views
Make game run in window and not lose focus
I have a few games that I would want to make windowed (windowed fullscreen preferable) and not lose their focus when other window is in focus. For example, Borderlands 2 allows some nifty tinkering ...
0
votes
3answers
31 views
execute a command in all subdirectories bash
I have a directory structure composed by:
iTunes/Music/${author}/${album}/${song.mp3}
I implemented a script to strip my mp3 bitrate to 128 kbps using lame (which works on a single file at time).
...
2
votes
2answers
59 views
how to set PowerShell as default instead of cmd.exe
I'm trying to get PS to open up instead of cmd.exe when I do a Shift+left-click and select open command window here
I changed the %ComSpec% system variable and even added on in my user variable ...
-1
votes
1answer
11 views
FInd Java Libraries from Command Line
So this might be a dumb question but, In Mac Terminal is there a command so that I can just say > find java and it will print the whole path to my java libraries? For greater context I've downloaded ...
1
vote
1answer
33 views
Batch create folders?
I'm looking for a way to batch create a folder followed by sub-folders.
I'm looking at something like
c:\users\user\desktop\sample\1
c:\users\user\desktop\sample\2
etc.
Any ideas?
I'd prefer ...
-5
votes
0answers
39 views
Command line based softwares [closed]
What are some of the most extinsively used Shell/Command-Line based software, that are still used a lot today.
Few examples would be FFMPEG and VIM.
Can anyone list out a few others?
-1
votes
1answer
40 views
How do I modify the data of an existing registry key value name from cmd?
How do I modify an existing registry key value from cmd?
There are a lot of options and switches, bells and whistles, for the Reg command. There are options to query, add, and delete keys, subkeys, ...
0
votes
1answer
12 views
Convert shn to flac with one command in CLI?
Everywhere I've googled they always convert shn to wav, and then to flac. It's really uncomfortable. How can I convert shn to flac withing one line?
0
votes
0answers
16 views
Can I test if command prompt support unicode in Windows
Is there a simple test (or trick) I can run on Windows command line to know if it supports unicode?
For the context, I'm using Node.js - but I'm pretty confident I could adapt any solutions.
1
vote
3answers
78 views
How do I start Notepad++ from cmd?
I can start the regular Notepad from cmd.
C:\Windows>notepad
I can also start it from the run prompt.
Win+R
notepad
Enter
I want to be able to do the same with the Notepad++. I can start it ...
1
vote
3answers
44 views
How do I gain access over C:\Windows\Logs\CBS\CBS.log?
I can't access this log file for some reason. This is what I have tried so far:
run prompt: C:\Windows\Logs\CBS\CBS.log
notepad: C:\Windows\Logs\CBS\CBS.log
elevated cmd: C:\Windows\Logs\CBS\CBS.log
...
0
votes
1answer
27 views
get rid of transparency of selected part of png using imagemagic
I have this png image with transparency http://s18.postimg.org/d2h2m4yl5/flatten_canvas2.png
I want to get rid of transparency using imagemagick, but only of the selected part and not the whole ...
0
votes
2answers
49 views
how to display local IP using a batch file?
So far I have the following in my batch file:
%comspec% /c ipconfig | find "IPv4" > %HOMEPATH%\desktop\MyIP.txt
%comspec% /c start notepad %HOMEPATH%\desktop\MyIP.txt
However, when I run the ...
9
votes
1answer
63 views
Command prompt for visually impaired
A friend and I are in a Computer Forensics class which is part of the MSc in Computer Science offered by the University of the West Indies' St. Augustine Campus. We're doing a mix of theory and ...
0
votes
0answers
12 views
How to install GRUB command-line tools on OSX?
I need access to grub-mkrescue for a project I'm working on. I know that the GRUB command-line tools come builtin to Linux, but how do I get them on OSX? Is there a package? Is it built into the ...
0
votes
1answer
30 views
Can't change default .jar opener from Command Prompt to Java SE Binary
A while back I changed my default opener for .jar files to cmd, as I was writing a few console applications in java and wanted to be able to run them easily (I now know that you can a similar result ...
1
vote
1answer
28 views
How to make vim recover files from command line?
If it were linux, I'd do it like this:
echo "w DST_FILE | q" | vim -Esu NONE -r SWP_FILE
I'm trying to do the same under windows with git's bash, but with no result. It hangs and doesn't create ...
0
votes
1answer
28 views
How to run AutoHotkey.exe in the foreground?
This command returns before my script is finished:
autohotkey myscript.ahk parm1 parm2
How do I run this in the foreground (not exit until done)?
0
votes
0answers
23 views
How can I un-concatenate a bunch of files?
I accidentally made a backup of folder using "copy folder folder_backup" and got a file called folder_backup. It contains all the bits of the folder. And I accidentally deleted the folder. How do I ...
0
votes
2answers
32 views
Merge directories without overwriting conflicts
I have 2 directories structures (A and B) that normally don't overlap. I want to merge A into B.
The following command will merge the directories:
xcopy A B /E /Y
However, I want to be able to ...
0
votes
0answers
12 views
Logging with ksh88
I've done something similar to:
promptFunc()
{
printf "$(date +%Y-%m-%d" @ "%H:%M:%S)" "$(history 1)" "$PWD" >> ~/.full_history
}
PROMPT_COMMAND=promptFunc
This places a copy of ...
-2
votes
2answers
21 views
Why svchost suchost is running in cmd mode but not in taskmanager
If we go to task manager and check, there seems to be no svchost/suchost process running.
However, if we check in cmd mode, using the command TASKLIST, it shows a list of hosts that are running ...
4
votes
3answers
70 views
In Powershell, is there a way to save a typed command into history without executing it for later execution?
In Powershell, is there a way, after typing a long or complicated command, to commit that command into the history buffer, but not execute it?
For example, you start typing a git commit, within ...
7
votes
3answers
347 views
How to find the Ram type in command prompt?
How to find the ram type(DDR2/DDR3) of the system using command prompt?
I have tried "SYSTEMINFO" in command prompt but it did not display the ram type.
0
votes
1answer
32 views
Can I use a cmd command to move previous revisions of documents into a different folder?
I work in document control and have a large number of documents saved in one folder, that folder also contains a folder called "old".
What I need to do is filter through the 1000's of documents in ...
0
votes
1answer
22 views
FFMPEG converting media type aswell as relocating MOOV atom
I have found this line online
ffmpeg -i input.mp4 -c:a copy -c:v copy -movflags faststart output.mp4
Which takes an input, and copies the audio, video and sets the MOOV atom to the beginning in an ...
0
votes
0answers
18 views
Adding Git repo and branch to Tmux status line
I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
0
votes
0answers
23 views
How to politely kill windows process from cygwin
I do have a bat(startJboss.bat) file that starts a JBoss server. When I start it it creates an output to standard cmd (windows) console. When I want to politely end this process I just hit Ctrl + C ...
0
votes
0answers
34 views
.bat runs from command line but not when scheduled
I've got a 1-line batch file that runs a pantaho etl job. It works fine when I run it from command line or gui, but the process doesn't even start when it's scheduled. I have the following settings:
...
3
votes
1answer
18 views
How should I call Net Use command to disconnect from a remote location?
When I "net use" I see that I have a connection to a remote location:
\\fooo.com\boo\zoo
but without any device name assigned.
What is the correct way/syntax to disconnect from this remote ...
0
votes
0answers
8 views
How to run Ansys in batch inside a job system?
I usually run Ansys in command line using something similar to:
/ansys_inc/v140/ansys/bin/ansys140 -p ansys -np 1 -dir "/home/cabellos/EXAMPLE" -j "file" -s read -l en-us -t
and then in the ansys ...
1
vote
1answer
28 views
Bash and Ubuntu Commands
I have a problem with bash currently. I have Ubuntu 10.04 installed on a server I ssh into to do Rails development and something happened and now I am unable to use RVM as it is installed. The error I ...
0
votes
1answer
34 views
Change console keymap running Live Debian image
I downloaded the Debian live standard (command line flavour, without X and any window managers) CD image, then booted into the live disk. With my first Arch Linux reflex I typed loadkeys dvorak ...
2
votes
1answer
38 views
How do I escape spaces for the ftype command in Windows?
I've created a new file type containing spaces and have specified the open command for it:
assoc .php="PHP Script"
ftype "PHP Script"="c:\program files (x86)\php\php.exe" -f "%1" -- %~2
So far so ...
0
votes
2answers
48 views
How to batch insert same clip scene at the beginning of multiple videos?
Well, it has been a few days researching on a suitable auto or semi-automatic way of mass merging files this way. Basically, what I want to achieve is inserting the same clip, before a bunch of other ...
1
vote
1answer
24 views
Could someone help me with “runas” command?
i am trying to insert text after opening a command prompt.exe. i am trying this with this code
start runas /user:Administrator cmd.exe except i cant use /c after the code for some reason. could ...
1
vote
2answers
41 views
How to merge ls commands colors with the output of find or du?
I have a simple alias to list the size of files&folders in cwd.
( including dotfiles in this case , ignoring zero sizes )
du -sh .[!.]* * | sort -hr | grep -v '^0'
which can be achieved ...
3
votes
1answer
80 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
0answers
13 views
How to prevent BAT termination failing to terminate called .exe?
I have a BAT program that repeatedly calls an EXE (MKS sed.exe) with output redirected to a TXT file. Sometimes termination of execution if this program by its window X button click leaves the EXE ...
1
vote
3answers
42 views
OSX: would it be possible to create a symbolic link that points to /dev/null e.g. a black hole directory
OSX: would it be possible to create a symbolic link that points to /dev/null e.g. a black hole directory.
I Work at a help desk and we need to sanitize a directory just in case data gets into it at ...
-1
votes
0answers
20 views
How to stretch a password and then encrypt a file?
I need a one-liner to stretch a password with something like Bcrypt or PBKDF2, and then encrypt a file with PGP or AES, eg: $ bcrypt "mypassword" --rounds 10 | aes256-cbc myfile.txt
I want the first ...
0
votes
0answers
30 views
crash shell: any way to check if a command executed Successfully
I am automating a test using crash package.
is there some thing like $? in bash shell, which can be used to check if previous command is executed success fully or not.
eg :
when command
crash> ...
2
votes
2answers
99 views
How to execute a function in bash or zsh on every letter being typed into prompt?
I know about preexec() hooks for zsh and the way this can be achieved in bash. ( link )
But can i get the current input while still typing?
The idea behind this question is the following:
in order ...



