Gnu utilities for windows

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Gnu Utilities (GnuWin)are similar like opensource licence(Not missing your unix command line tools) provided with any standard 32-bits MS-Windows operating system, such as MS-Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista.

CoreUtils for Windows

File utilities:

* chgrp: Changes file group ownership.
* chown: Changes file ownership.
* chmod: Changes file permissions.
* cp: Copies files.
* dd: Copies and converts a file.
* df: Shows disk free space on filesystems.
* dir: Gives a brief directory listing.
* dircolors: Setup program for the color output of GNU ls.
* du: Shows disk usage on filesystems.
* install: Copies file and sets its permissions.
* ln: Creates file links.
* ls: Lists directory contents.
* mkdir: Creates directories.
* mkfifo: Creates FIFOs (named pipes).
* mknod: Creates special files.
* mv: Moves files.
* rm: Removes (deletes) files.
* rmdir: Removes empty directories.
* shred: Destroy data in files.
* sync: Synchronizes filesystem buffers and disk.
* touch: Changes file timestamps.
* vdir: Long directory listing.

Text utilities:

* cat: concatenates and prints files on the standard output
* cksum: checksum and count the bytes in a file
* comm: compares two sorted files line by line
* csplit: splits a file into sections determined by context lines
* cut: remove sections from each line of files
* expand: convert tabs to spaces
* fmt: simple optimal text formatter
* fold: wrap each input line to fit in specified width
* head: output the first part of files
* join: join lines of two files on a common field
* md5sum: compute and check MD5 messsage digest
* nl: number lines of files
* od: dump files in octal and other formats
* paste: merge lines of files
* ptx: produce a permuted index of file contents
* pr: convert text files for printing
* shasum: compute and check SHA1 message digest
* sort: sort lines of text files
* split: split a file into pieces
* sum: checksum and count the blocks in a file
* tac: concatenates and prints files in reverse
* tail: outputs the last part of files
* tr: translates or deletes characters
* tsort: perform topological sort
* unexpand: convert spaces to tabs
* uniq: remove duplicate lines from a sorted file
* wc: prints the number of bytes, words, and lines in files

Shell utilities:

* [ – Check file types and compare values
* basename – Removes the path prefix from a given pathname.
* chroot – Changes the root directory.
* date – Prints/sets the system date and time.
* dirname – Removes the last level or filename from a given pathname.
* echo – Prints a line of text.
* env – Displays/modifies the environment.
* expr – Evaluates expressions.
* factor – Prints prime factors.
* false – Returns an unsuccessful exit status.
* groups – Print the groups that the user is a member of.
* hostid – Print the numeric identifier for the current host
* hostname – Print or set the machine name.
* id – Print real/effective uid/gid.
* logname – Print current login name.
* nice – Modify scheduling priority.
* nohup – Allows a command to continue running after logging out.
* pathchk – Check file name portability.
* pinky – Lightweight finger
* printenv – Prints environment variables.
* printf – Formats and prints data.
* pwd – Print the current working directory.
* seq – Print numeric sequences.
* sleep – Suspends execution for a specified time.
* stty – Print/change terminal settings.
* su – Allows you to adopt the id of another user or superuser.
* tee – Sends output to multiple files.
* test – Evaluates an expression.
* true – Returns a successful exit status.
* tty – Print terminal name.
* uname – Print system information.
* users – Print current user names.
* who – Print a list of all users currently logged in.
* whoami – Print effective user id.
* yes – Print a string repeatedly.

Refferences:
http://www.gnu.org/software/coreutils
http://unxutils.sourceforge.net/
http://lifehacker.com/354014/get-gnu-tools-on-windows-with-unixutils
http://www.mingw.org/
http://irsoft.de/web/Win32GNUtils
http://www.ltr-data.se/opencode.html/

Did you know that many Unix core programs are available as Windows executables? Because the code for these utilities is open source, there are a couple of different organizations that have taken the liberty of compiling them for the Windows platform and making them available. One such project is GnuWin32. If you want to, say, use common Unix text processing programs on Windows as part of your Hyperion automation, you definitely can. You would just install the programs on your server, probably add their folder to your system PATH, and then be able to call them like any other program.

Why would you want to do this? There are some really great programs available on Unix platforms that might be useful for some one-off processing you do as part of your automation. In the coming days I’m going to post a few examples of some interesting text processing examples you might do with these utilities that are inspired by Essbase/Hyperion. Of course, for those of you already running Linux/AIX, you should already be set (and of course, as a smug Mac user myself, I am good to go at least with my development machine…).

Another such project that otherwise makes Unix tools available on Windows is the Cygwin project, which you might want to check out too if you need to get this functionality on a Windows machine.

Reading Time: < 1 minute

Last Update: 6/20/2024.

For development using GNU tools in a Microsoft Windows environment there are two common paths.

There is the MSYS2 distribution.

MSYS2 is commonly referred to as the “Minimal System 2” software collection for development on the Microsoft Windows platform.

  • MSYS2 link

This is a “collection” of components (libraries and tools) They are built to coexist and support the whole. The individuals tools are not necessarily standalone projects. For example RM.EXE is linked to “msys_1.0.dll”. So you probably are going to want to use the entire package or wisely pick all the supporting components (tools and libraries) for a particular command line tool..

There is the GNUWIN32 distribution:

The GNUWIN32 distribution is a collection of common Unix tools brought to the Microsoft Windows environment. The repository is hosted by SourceForge – a web based Source Code Repository for Open Source Software (OSS). This can very much be an ale-carte system. Tools can be selected/found from a common list of packages.

https://gnuwin32.sourceforge.net/packages.html

Example: Make package

Make, for example, is a common tool used for automating and standardizing project builds.

  • https://www.gnu.org/software/make/
  • https://gnuwin32.sourceforge.net/packages/make.html
  • make-3.81-bin.zip

COREUTILS:

coreutils – is a common collection of text, file, and shell utilities which are presumed to exist. In development terms, after booting a system. One would presume to have a basic, or core, set of tools to start from. This would include everything from copying files and manipulating filesysetms (cp, dir, mkdir), to deeper file analysis (cat, tail, sum, wc) to shell operations like (su, tee, uname, whoami)

  • https://gnuwin32.sourceforge.net/packages/coreutils.htm
  • coreutils-5.3.0-bin.zip

This entry was posted in Programming. Bookmark the permalink.

GnuWin32 Почему-то в русском интернете мало используется весьма полезный пакет для Windows под названием GnuWin32. Проект GnuWin32 предоставляет набор популярных unix утилит, портированных на платформу Win32. Все утилиты предоставляются с лицензией GNU (или с аналогичными лицензиями open source) . Эти программы собраны с использованием стандартных 32-битных библиотек MS-Windows, таким образом они не зависят от каких-либо сторонних библиотек совместимости, например CygWin или Msys.

Все портированные пакеты и утилиты можно условно разделить на несколько общих категорий:

  • утилиты GNU: bc, bison, chess, compface, cpio, coreutils (fileutils, sh-utils, stat, textutils), diffutils, doschk, ed, findutils, flex, gawk, gdbm, gcal, gengetopt, gettext, gperf, grep, groff, gsl, gzip, hello, help2man, iconv, jwhois, less, m4, miscfiles, patch, readline, regex, rx, sed, sharutils, tar, texinfo, tree, units, unrtf, wget, which
  • Архивация и сжатие: arc, arj, bsdtar, bzip2, gzip, lha, libarchive, unzip / zip, zlib
  • Другие: byacc, cpuid, cygutils, file, ntfsprogs, openssl, pcre, popt, re2c, rpl, sgrep, tree, x86info
  • Для работы с графикой: asciichart, compface, gd, jpeg, jbigkit, liburt, libungif, libpng and png utilities, libwmf, netpbm, piechart, plotutils, tiff, xpm, zimg
  • Текстовые процессоры и posscript: a2ps, barcode, bm2font, deroff, dvidj, enscript, freetype, grap, gri, groff, indent, libxml, nenscript, pdflib, polyglotman, psutils, scribe2latex, src-highlite, t1lib, t1utils, troff2latex, ttf2pt1, unrtf
  • Математические и статистические: bc, calc, crypt, fdlibm, gsl, units

Дополнительные бонусы:

  • GnuWin32 всегда предоставляет исходные коды, зачастую этого требуют и лицензии оригинальных программ. Все изменения оригинального представлены в формате diff.
  • GnuWin32 всегда предоставляет документацию в компилированном виде, например, в PDF, HTML, PS, DVI, CHM и HLP.
  • GnuWin32 предоставляет заголовки импорта библиотек для MSVC и BCC везде, где это возможно.

Загрузить установочные пакеты можно отсюда: http://sourceforge.net/projects/getgnuwin32/files/. После установки может добавьте путь к файлам пакета в системную переменную PATH,- и у вас появится возможность использовать привычные unix утилиты в командной строке windows.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows server что это за процесс на mac os
  • Touchpad driver elan synaptics alps for windows 10 64 bit notebook
  • Facebook on windows phone
  • Windows 7 виснет на завершении установки
  • Как изменить масштаб приложения в windows 11