have you come across a good unix like emulator for windows?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

have you come across a good unix like emulator for windows?

Post by raghavan20 »

I am looking for a Unix like OS emulator to practice unix commands for free...have you come across any of them?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Cygwin. End of story ;)
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

I installed it as you said..these are the supported commands I guess...
I have two questions for you..
1. are these set of commands are enough to learn the basics.
2. can you suggest any good starter which should fairly cover all the basics...by the way why you did not write a crash course for Unix beginners like you did in regex... :D

Code: Select all

%[DIGITS | WORD] [&]               (( expression ))
 . filename [arguments]             :
 [ arg... ]                         [[ expression ]]
 alias [-p] [name[=value] ... ]     bg [job_spec]
 bind [-lpvsPVS] [-m keymap] [-f fi break [n]
 builtin [shell-builtin [arg ...]]  caller [EXPR]
 case WORD in [PATTERN [| PATTERN]. cd [-L|-P] [dir]
 command [-pVv] command [arg ...]   compgen [-abcdefgjksuv] [-o option
 complete [-abcdefgjksuv] [-pr] [-o continue [n]
 declare [-afFirtx] [-p] [name[=val dirs [-clpv] [+N] [-N]
 disown [-h] [-ar] [jobspec ...]    echo [-neE] [arg ...]
 enable [-pnds] [-a] [-f filename]  eval [arg ...]
 exec [-cl] [-a name] file [redirec exit [n]
 export [-nf] [name[=value] ...] or false
 fc [-e ename] [-nlr] [first] [last fg [job_spec]
 for NAME [in WORDS ... ;] do COMMA for (( exp1; exp2; exp3 )); do COM
 function NAME { COMMANDS ; } or NA getopts optstring name [arg]
 hash [-lr] [-p pathname] [-dt] [na help [-s] [pattern ...]
 history [-c] [-d offset] [n] or hi if COMMANDS; then COMMANDS; [ elif
 jobs [-lnprs] [jobspec ...] or job kill [-s sigspec | -n signum | -si
 let arg [arg ...]                  local name[=value] ...
 logout                             popd [+N | -N] [-n]
 printf format [arguments]          pushd [dir | +N | -N] [-n]
 pwd [-PL]                          read [-ers] [-u fd] [-t timeout] [
 readonly [-af] [name[=value] ...]  return [n]
 select NAME [in WORDS ... ;] do CO set [--abefhkmnptuvxBCHP] [-o opti
 shift [n]                          shopt [-pqsu] [-o long-option] opt
 source filename [arguments]        suspend [-f]
 test [expr]                        time [-p] PIPELINE
 times                              trap [-lp] [arg signal_spec ...]
 true                               type [-afptP] name [name ...]
 typeset [-afFirtx] [-p] name[=valu ulimit [-SHacdflmnpstuv] [limit]
 umask [-p] [-S] [mode]             unalias [-a] name [name ...]
 unset [-f] [-v] [name ...]         until COMMANDS; do COMMANDS; done
 variables - Some variable names an wait [n]
 while COMMANDS; do COMMANDS; done  { COMMANDS ; }
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It'll support a lot more than that. I've never had cause to use it myself for obvious reasons (linux user). I know plenty of people who did at Uni though. You can extend it a lot I believe. You can also install a lot of *nix apps in it. Yes... it will teach you the basics but I would certainly suggest installing a real linux/bsd system (or unix if you can afford it) on your computer as a dual boot. I find the whole experience much more pleasurable than windows ever was (just my $0.02).
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Nowadays it's even easier... You can get a couple of free cds delivered in your postal box from ubuntu... Then you have an installer cd, and a live-cd (you can run from the cdrom, without installing anything).

If you simply want to get familiar with day-to-day shell commands, meaby a simply shell account is more than enough. If you look around a little you'll find those for free too...
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

I ran the ls -l command and I got the following output

Code: Select all

-rwxrwxrwx  1 raghavan None 2714 Feb  3 01:27 sample.txt
-rw-r--r--  1 raghavan None  227 Feb  3 01:31 temp1.txt
I have two txt files one I created from Windows just using notepad and put it to cygwin directory and the other one using ls -l > temp1. txt. The first file has a execution permission but temp1 does not....why? then what does an execute permission got to do with a text file?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

then what does an execute permission got to do with a text file?
It looks like files created with windows have the executable bit set by default...
Post Reply