Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 73637

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

2 votes

How can the same subdirectory be removed from different parent directories?

You can achieve this using the find and xargs commands. Let's say Parent1 and Parent2 are both stored in a directory named SuperParent. You could do something along the lines of: find /SuperParent -n …
Gareth's user avatar
  • 18.9k
10 votes

How do I get to a DOS prompt in Windows 7?

Click the Start Orb and type cmd in the search box, then press Enter. This assumes that by 'DOS prompt' you are referring to a command prompt. If you want a true DOS environment then Windows 7 does …
Gareth's user avatar
  • 18.9k
0 votes
Accepted

RAR Usage in Linux Command Line

If you use the c command to add an archive comment, it will overwrite the archive comment that already exists, e.g. rar c example.rar As for deleting files from RAR archives, the syntax is definite …
Gareth's user avatar
  • 18.9k
4 votes

When running command from Start > Run, the command exits before I can see the results

Yes, if you prefix the command with cmd /k in Start > Run, it will keep the Command Prompt open after execution has finished. For example: cmd /k chkdsk
Gareth's user avatar
  • 18.9k
10 votes
Accepted

What's the equivalent command of "wmic memlogical" in Windows 7?

The aliases are a bit different in Windows 7 - memlogical doesn't exist. Here's how to get the same information in Windows 7: Total Physical Memory wmic ComputerSystem get TotalPhysicalMemory Avai …
Gareth's user avatar
  • 18.9k
19 votes
Accepted

How can I generate Pi to a given number of decimal places from a script?

Assuming you have the bc (Basic Calculator) utility on your system, you could use the following command and a bit of good old mathematics to calculate π to 10,000 decimal places: echo "scale=10000; 4 …
Gareth's user avatar
  • 18.9k
2 votes
Accepted

Excel 2003: open spreadsheet and run macro from command line

You could do this with VBScript. Here's some example code: Option Explicit Dim excelObject Set excelObject = CreateObject("Excel.Application") excelObject.WorkBooks.Open "path:\to\file.xls", 0, True …
Gareth's user avatar
  • 18.9k
79 votes
Accepted

How to list folders using bash commands?

You can use: ls -d -- */ Since all directories end in /, this lists only the directories in the current path. The -d option ensures that only the directory names are printed, not their contents.
Gareth's user avatar
  • 18.9k
14 votes

Windows: Command line redirection to text file while also seeing output

Under Windows all I can think is to do this: myProgram.exe > mylog.txt & type mylog.txt This is based on the command example in your question - if in fact you wanted to append the output to mylog.t …
Gareth's user avatar
  • 18.9k
0 votes

How do I re-sort a list of files grouped by directory?

I don't believe this is a very elegant solution but it does work: Download the GnuWin32 CoreUtils package Extract the files somewhere accessible. Use the 'sort' executable provided along the lines o …
Gareth's user avatar
  • 18.9k
16 votes

Showing the line count of a specific file

You can use this command: wc -l <file> This will return the total line number count in the provided file.
Gareth's user avatar
  • 18.9k
37 votes
Accepted

Is it possible to override the command line's built in "cd" command?

The following should work: function cd() { builtin cd "$@" && ls -l; } Since the function is on a single line, ensure that it is terminated with ; as above in order to work correctly.
Gareth's user avatar
  • 18.9k
5 votes

Unix command-Line CSV viewer

There's a tool, CSVfix, which helps with viewing CSV files. CSVfix is a command-line stream editor specifically designed to deal with CSV data. With it you can, among other things: C …
Gareth's user avatar
  • 18.9k
6 votes
Accepted

Is it possible to pipe a list of files to RMDIR on Windows?

You can use the following in your batch file: FOR /f "tokens=*" %%a in ('dir *.delete /A:D /B /S') DO RMDIR /S /Q %%a This uses the FOR command to loop through the output of a given command (in thi …
Gareth's user avatar
  • 18.9k
4 votes
Accepted

How can I open a console window at the specified position of the screen?

I'm not aware of a way to do it with a batch script, but you can use the following VBScript: Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set objConfig = objWMIService.Get("Win32_ProcessS …
Gareth's user avatar
  • 18.9k