Discussion on:

124
Comments

Join the conversation!

Follow via:
RSS
Email Alert
44 Votes
+ -
Top Rated
+4 more
0vidiu 21st May 2012 Top Rated
ipconfig [ /all ] -- 2nd or 3rd place
telnet x.x.x.x [port] to check and open port
ipconfig /renew - place 5th - 6th
nslookup
4 Votes
+ -
Don't forget ipconfig /release for when it won't let go.. and I'm surprised the netstat, nslookup, and particularly the netsh commands didn't get a mention here.
I prefer Dig, although in the Windows world, nslookup is the only DNS lookup service available. Why Dig hasn't been ported to Windows I'll never know; it's much more useful.
0 Votes
+ -
Dig on Windows
wdewey@... 21st May 2012
Dig has been ported to windows, but since it isn't a stock app nslookup still gets used a lot.

Bill
Don't forget the unix/linux/MacOS/*nix equivalent: ifconfig -a
qwinsta /server:

Lists sessions on a server.

rwinsta /server:

Resets that session knocking the user off of the server.
11 Votes
+ -
grep
kashyap.bikram@... 21st May 2012
Most valuable
3 Votes
+ -
%windir%\system32\taskkill.exe /F /FI "status eq not responding"
2 Votes
+ -
+2
aboshooq@... 21st May 2012
I think these 2 command should be included [ ls ] it very common to use, also cd,
0 Votes
+ -
some comments are confusing commands with program or utility names
0 Votes
+ -
...note the smiley face in the Subject.

I will take a moment to mention that Command Prompt has stayed in the top half of my Windows 7 frequently accessed programs for about a month now... not sure if that's a feeble attempt at geek braggery or what.
2 Votes
+ -
Try the following:

man man

Then try:
man woman
0 Votes
+ -
the second is...
rufwork Updated - 21st May 2012
nsfw.
I tried finding "man bear pig" but it isn't working?
Really liking the comments - great stuff and cmdlet finds that should be an article all to itself.
Seems she don't like with the hands xD
0 Votes
+ -
and copy con
1 Vote
+ -
nslookup
richardwebsterza 21st May 2012
I use nslookup every day, even with tools like dig etc... nslookup is what I was brought up on happy
3 Votes
+ -
tail
tom.burke@... 21st May 2012
tail -n[some number] filename, e.g. 'tail -n300 catalina.out'

Invaluable when trying to work out what's happening when daemon is starting up. Or not.
1 Vote
+ -
I'm all for for.
dakra137 21st May 2012
Whether using DOS, Windows, or linux, whether from a command line or in a bat/cmd/sh file, the "for" command is like the conductor of the soloist, getting the soloist to perform a wide variety of variations on a theme.
0 Votes
+ -
On a Solaris system "killall" kills all running processes. Be warned!
0 Votes
+ -
once. Kill -9 is also useful, but quite dangerous
7 Votes
+ -
a few more
dan.stalker@... 21st May 2012
cacls for setting file/share perms
w32tm for checking/setting time parameters
shutdown /r for rebooting yours or another system when windows is "uncooperative"
netdom for resetting windows communications secret passwords
nbtstat for checking cached info
dsadd,dsget,dsmod,dsquery for AD management tasks
dnscmd for updating dns
rpcping for tesing rpc connections
ntdcutil for managing fsmo roles, among other things
2 Votes
+ -
netstat
jopoysolano 21st May 2012
netstat
4 Votes
+ -
XCOPY
Rembrandt1 21st May 2012
with all those parameters - big TICK. I haven't found a backup tool - an' I've tried a fair few in 30 years in IT - that comes anywhere near the simplicity and flexibility of xcopy.
5 Votes
+ -
Have you tried to use Robocopy? IMHO it puts xcopy to shame. Way more parameters, plus logging and the fact that is only copies changed files by default when running the same job more than once - like running a backup. happy
0 Votes
+ -
Also SyncToy
davidhbrown 21st May 2012
In addition to robocopy, take a look at SyncToy for the command-line-impaired.
using ">" or ">>" so that you can save and review the output later
e.g dir >> c:\temp\listing.txt
ok that was a trivial example.
or piping into more
dir | more
2 Votes
+ -
Group policy updater in windows land.
0 Votes
+ -
+ftp
admin@... 21st May 2012
Windows Ftp when you are at a (customer) PC and need to upload / download a file
1 Vote
+ -
It's occasionally happened to me that an application has managed to generate a file name which Windows can't handle, so that Windows Explorer won't delete the file either individually or as part of a group selection because ti can't "see" it. When that happens the best solution seems to be to move all the other files out of the affected directory and then go to the command prompt and do a del *.* on that directory.
Not to worry, your readers caught them.
2 Votes
+ -
ssh
Odipides 21st May 2012
How can anyone do without an ssh command line when managing remote boxes?

Also, whilst there are a load of GUI front-ends for git, they always stuff up and I end up back at the command line (although 'smartgit' isn't bad)
0 Votes
+ -
Putty
wdewey@... 21st May 2012
The windows command line sucks for SSH compared to putty.

Bill
I would add the "grep" "tail" command as the most popular! "ls -l" and there are many more who we can't forget and even windows user still run cmd line or powershell as it become more popular for windows sys admins.
and everything in its time and place. It's a tool. It shouldn't be the first one out of the box, but it can be used effectively with restraint.
0 Votes
+ -
my 2p
dford@... 21st May 2012
I'd add tail and less
2 Votes
+ -
shutdown -r/-s (-m computername) happy
0 Votes
+ -
no sudo for you!
rufwork 21st May 2012
sudo?
rm -rf?

Careful using in tandem though.

man? Who uses man? ;^)
0 Votes
+ -
Are you saying that you never need directions, or that you know it all already?

happy
Cheers!
0 Votes
+ -
how else are you supposed to use the switches on a seldom used tool? Do a man on vi or vim someday. The information is daunting but informative.
0 Votes
+ -
ipconfig
CaveTalker 21st May 2012
Ipconfig in general is number two behind ping. Troubleshooting 101, ping it, if it isn???t ping-able verify the issue isn???t you be for continuing.
0 Votes
+ -
I was surprised to not see grep on this list. happy
1 Vote
+ -
Nbtstat -A followed by IP address shows information of that machine
4 Votes
+ -
You don't need 'find' just because you lost a file. This command is most useful when you want to locate all common files (like *.jpg) and automatically run other useful commands (like chmod, grep, etc) on them. And don't forget being able to 'pipe' at the command line.
0 Votes
+ -
The | pipe
Jack 21st May 2012
Far and away the most poweful command line tool, because it feed the text output of one command into the input of another.

Works on Windows or Unix.
0 Votes
+ -
The pipe should redirect all output from one command/program into another. At least it does on *nix systems.

tar [switches to compress all files/folder/recursive] | tar [switches to uncompress it all in a new location. File tree duplicated in new location without the intermediate step of creating a tar.gz in-between.
0 Votes
+ -
grep
cbecker@... 21st May 2012
Has to be in the lineup somewhere!
1 Vote
+ -
dir
cd c:\
dir > lpt1
1 Vote
+ -
For data
aratinga 21st May 2012
I just downloaded grep and sed from GnuWin32. I hadn't used any Unix for years, never mind how many. But I needed some quick access to some ugly XML, and there it was!

I am reviewing their library for other handy commands.

Yes, I have also used the various network commands suggested.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.