Tag Info

Hot answers tagged

2

If I read your question right, you're looking for something else than what chere supplies (which, granted, is pretty cool in its own right). The current version of Cygwin doesn't have an /etc/passwd file, and the system I'm working on has Windows account information in a domain database out of my control. Consequently, chsh is no longer supported. I ...


2

Windows does indeed support hard links. However, the documentation on CreateHardLink says it all: This function is only supported on the NTFS file system This limitation is probably hard-coded. Because ext2fsd is clearly not NTFS, Windows will refuse to create hard links on it. Cygwin provides POSIX API compatibility (of sorts) on top of Windows APIs. ...


1

to save changes in the file, you need -i in insert the changes, other wise it will only change them in stdout Here is a tutorial to help http://www.grymoire.com/Unix/Sed.html#uh-62h try sed -i -e 's/MN2/MN9/g' 01_valid.txt


1

This clears scrollback buffer in cygwin bash clear or echo -e '\0033\0143'


1

I recently had to clone one USB drive to another on windows. My drive is a multiboot with additional software so I didn't want to just copy all files on the FS. DD was a clear choice, but I wasn't on linux so there were a few things I had to do to get it working. I had cygwin installed and did the following. first I had to figure out what /dev/sdX device ...


1

By default top does not show the PPID (at least in CygWin). Besides that, you can use the batch mode of top by using the -b switch in combination with the -n 1 switch (run once). I used awk to skip the first lines and do a rough selection of the columns. top -b -n 1 | awk 'NR>6 { print $1, $8, $12 }'



Only top voted, non community-wiki answers of a minimum length are eligible