cygwin - ubuntu


 
Thread Tools Search this Thread
Operating Systems Linux cygwin - ubuntu
# 8  
Old 09-14-2011
Quote:
Originally Posted by jae99
I would like to get the same bash as ubuntu. With the sudo command and such.
sudo is not part of BASH. Neither is ls, mv, cp, sed, awk, cut, and so forth -- BASH just ties them all together for you. Only a very few like printf and echo and expr are probably built-ins.

A big exception would be busybox -- it's an all-in-one program, not needing cygwin at all, which includes BASH and over a hundred common shell commands all as builtins. Unlike cygwin, you can carry it around on a thumbdrive.

It doesn't have a sudo, though. sudo for windows inside BASH continues to fit Windows as badly as sudo for Windows without BASH.
# 9  
Old 09-14-2011
Quote:
Originally Posted by mark54g
jae,

Ubuntu, to my knowledge, does not have its own shell. Perhaps you just want access to bash?
Ubuntu uses the Debian Almquist (dash) shell by default.
# 10  
Old 09-14-2011
Quote:
Originally Posted by Corona688
s
A big exception would be busybox -- it's an all-in-one program, not needing cygwin at all, which includes BASH and over a hundred common shell commands all as builtins.
The builtin shell in BusyBox is not bash. It is ash. See busybox source
# 11  
Old 09-14-2011
Quote:
Originally Posted by fpmurphy
The builtin shell in BusyBox is not bash. It is ash.
The version I linked definitely answers to 'bash'.
Code:
$ ./busybox.exe
BusyBox v1.19.1_18_0-306-geb28f73.git (2011-01-16 17:56:02 ICT) multi-call bina
y.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, ar, ash, awk, base64, basename, bash, bbconfig, bunzip2, bzcat,
        bzip2, cal, cat, catv, cksum, cmp, comm, cp, cpio, cut, date, dc, dd,
        diff, dirname, dos2unix, echo, ed, egrep, env, expand, expr, false,
        fgrep, find, fold, getopt, grep, gunzip, gzip, hd, head, hexdump, kill,
        killall, length, ls, lzcat, lzma, lzop, lzopcat, md5sum, mkdir, mv, od,
        pgrep, pidof, printenv, printf, ps, pwd, rm, rmdir, rpm2cpio, sed, seq,
        sh, sha1sum, sha256sum, sha512sum, sleep, sort, split, strings, sum,
        tac, tail, tar, tee, test, touch, tr, true, uncompress, unexpand, uniq,
        unix2dos, unlzma, unlzop, unxz, unzip, usleep, uudecode, uuencode, vi,
        wc, wget, which, whoami, xargs, xz, xzcat, yes, zcat

$

It may be they just gave ash two names, though. That'd be annoying.

Last edited by Corona688; 09-14-2011 at 12:02 PM..
# 12  
Old 09-18-2011
Quote:
Originally Posted by fpmurphy
Ubuntu uses the Debian Almquist (dash) shell by default.
Yet another reason I can avoid it Smilie.
# 13  
Old 09-19-2011
Can anyone post a link to a place that explains the difference between ubuntu and other versions of linux a little more in detail.
# 14  
Old 09-19-2011
There are literally hundreds of different distributions of Linux. What you are asking for is nearly impossible.

Ubuntu is a derivative of Debian, but does make some sweeping changes that are either liked or seriously disliked.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Ubuntu

Re-install Ubuntu 14.04 from system with Ubuntu on it

I need to re-install ubuntu on a system with ubuntu 14.04 already installed. I have the cd but can not seem to boot from it or find the installer. Is there a way to re-install from the command line or how do I do a fresh re-install? Thank you :) ---------- Post updated at 10:13 AM... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

3. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

4. Ubuntu

Ubuntu / Ubuntu File Manager / Config

I am using Ubuntu 9.10 with Gnome 2.28. I use the default Nautilus File Manager to view / manage files. Is there a way to add icons or customize the icons that are above the location bar and below the menus? There is a bar that has icons for "Back" "Forward" "Parent" above the location bar. I... (6 Replies)
Discussion started by: drewk
6 Replies

5. Ubuntu

XP and Linux (Ubuntu) on same disk, Can I install Ubuntu on not-yet partitioned portion of disk?

My PC (Esprimo, 3 yeas old) has one hard drive having 2 partitions C: (80 GB NTFS, XP) and D: (120 GB NTFS, empty) and and a 200 MB area that yet is not-partitioned. I would like to try Ubuntu and to install Ubuntu on the not-partitioned area . The idea is to have the possibility to run... (7 Replies)
Discussion started by: C.Weidemann
7 Replies

6. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies
Login or Register to Ask a Question