superbirra, (edited )

while :; do date; sleep 1; done

Picture_Pig,
@Picture_Pig@lemmy.world avatar

thanks this is more like c syntax tho its bash im learning c btw :3

superbirra,

it’s posix shell, also it produces an output similar to your post unlike watch, which everyone is rushing to point out as if it were the ultimate superninja haxxor secret tool that nobody knows about :DDD

optimal,
@optimal@lemmy.blahaj.zone avatar

<span style="color:#323232;">watch -n1 date
</span>
superbirra,

none

possiblylinux127,

Slightly unrelated but cygwin will run better on windows (its way lighter)

QuaternionsRock,

Can Cygwin run Linux GUI programs effectively? What about GPU-bound workloads? Would happily switch if the answer to both of those is yes.

possiblylinux127,

You can run GUI apps but I’m not sure about GPU workloads. Wouldn’t bare metal be the best for that?

QuaternionsRock,

Wouldn’t bare metal be the best for that?

Technically yes, but WSL2 is remarkably close to optimal in terms of throughput. Unlike WSL1 (a type 2 hypervisor), WSL2 requires Hyper-V (a type 1 hypervisor), meaning Windows also runs as a VM once it’s enabled. The Linux vGPU driver still needs to go through the Windows Nvidia driver as far as I know, but that is seldom the bottleneck for CUDA applications.

Picture_Pig,
@Picture_Pig@lemmy.world avatar

true it uses a Microsoft Hypervisor Virtual Machine

Picture_Pig,
@Picture_Pig@lemmy.world avatar

i dont mind the GUI… but is Cygwin open source? just knowing

0x4E4F,
@0x4E4F@sh.itjust.works avatar

Yep, that’s what I use as well… in Windows I mean.

azerial,

AHHHH “Has ptsd flashbacks from having to use Cygwin on a mixed build environment for a popular MMO that’s about some kind of war up in the stars…” lol NOT THE CYGDRIVE lol jk but it did take me back ~5 years.

Picture_Pig,
@Picture_Pig@lemmy.world avatar

i try to understand that…

lapingvino,

Best option is still Git Bash 🙃

Picture_Pig,
@Picture_Pig@lemmy.world avatar

most true :3

gornius,

Better in which way? WSL2 is a VM running ALONGSIDE Windows, not inside. Its performance is basically bare metal. If you have enough RAM, there is no reason to use cygwin instead of WSL2.

possiblylinux127,

In that case why don’t you just run a VM or install bare metal. WSL strips you of control just like Windows itself does.

Picture_Pig,
@Picture_Pig@lemmy.world avatar

its complicated as i replied to someone else’s comment…

im not a “it just works” user too but its complicated to explain why i use windows for now (but ill switich soon)

like im totally a FOSS enthusiast but like…

Picture_Pig,
@Picture_Pig@lemmy.world avatar

its complicated please dont blame me for WSL

Picture_Pig,
@Picture_Pig@lemmy.world avatar

thanks

Bishma,
@Bishma@discuss.tchncs.de avatar

watch -n 1 date

bloopernova,
@bloopernova@programming.dev avatar

I was going to post exactly that, lol

Picture_Pig,
@Picture_Pig@lemmy.world avatar

nice

TheGreenGolem,

No, that’s a specific number.

Picture_Pig,
@Picture_Pig@lemmy.world avatar

what

TheGreenGolem,

69 -> nice.

I referenced an overused, childish joke.

mypasswordis1234, (edited )
@mypasswordis1234@lemmy.world avatar
youngGoku,

Same

Picture_Pig,
@Picture_Pig@lemmy.world avatar

what does it do?

Bishma,
@Bishma@discuss.tchncs.de avatar

it runs the date command once per second until you hit ctrl+c

Picture_Pig,
@Picture_Pig@lemmy.world avatar

tysm!

simpleslipeagle,

-d if you’re feeling sporty.

Bishma,
@Bishma@discuss.tchncs.de avatar

If we’re adding dramatic flourish, I’ll suggest watch -n 1 ‘date | cowsay’

azerial, (edited )

man watch

Nice command! Thanks!

edit: md

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #