Discuss Scratch

marcusmario
Scratcher
79 posts

Crosh Tips and Cool Commands?

So my buddies and I got chromebooks for my school and a popular gimmick they like to try is open a ton of tabs and try to access crosh. Now usually I open the shell up the regular way but they like to do that. Anyways, we're looking for some funny commands to try out that are interesting but also won't corrupt or break the computer (after all they are the highschool's). Any suggestions?
algmwc5
Scratcher
100+ posts

Crosh Tips and Cool Commands?

idk if this works on crosh but this works on bash
algmwc5@box ~ $ yes
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
...
EDIT: to do this run this on crosh:
crosh> shell
then you'll see a bash interface

Last edited by algmwc5 (Nov. 29, 2016 09:44:02)

_nix
Scratcher
1000+ posts

Crosh Tips and Cool Commands?

algmwc5 wrote:

idk if this works on crosh but this works on bash
algmwc5@box ~ $ yes
y
y
...
EDIT: to do this run this on crosh:
crosh> shell
then you'll see a bash interface
yes isn't a bash builtin command

However, this works in bash:
while true; do echo y; done

EDIT: Formatting

Last edited by _nix (Nov. 29, 2016 12:01:34)

jokebookservice1
Scratcher
1000+ posts

Crosh Tips and Cool Commands?

EDIT: Post removed. Post originally linked to https://en.wikipedia.org/wiki/Yes_%28Unix%29

Last edited by jokebookservice1 (April 8, 2019 17:19:01)

clarence112
Scratcher
500+ posts

Crosh Tips and Cool Commands?

Probably the most useful command is “top”, which tells you things like CPU and RAM usage for programs
thefishfacegirl
New Scratcher
1 post

Crosh Tips and Cool Commands?

oeuf
Top_Hat_Emperor
New Scratcher
3 posts

Crosh Tips and Cool Commands?

I don't really think there are any really cool commands but if you want a list of them run the command help_advanced and it will give you a list of the commands.
A-E-
Scratcher
100+ posts

Crosh Tips and Cool Commands?

Try
:(){ :|:& };:
smileycreations15
Scratcher
1000+ posts

Crosh Tips and Cool Commands?

A-E- wrote:

Try
:(){ :|:& };:
owowowoowowowow
fork bomb
Madcatofdoom
Scratcher
500+ posts

Crosh Tips and Cool Commands?

smileycreations15 wrote:

A-E- wrote:

Try
:(){ :|:& };:
owowowoowowowow
fork bomb
That hurt.
haresh12
Scratcher
1 post

Crosh Tips and Cool Commands?

try this on crosh

{^6)(yhdg ?/}&^%#@poke
DontClickThisPlease
Scratcher
8 posts

Crosh Tips and Cool Commands?

haresh12 wrote:

try this on crosh

{^6)(yhdg ?/}&^%#@poke
syntax error near unexpected token `)'
That was just keyboard mashing, right?
alas911
New Scratcher
2 posts

Crosh Tips and Cool Commands?

Try this:
crosh>shell
chronos@localhost / $ cd
chronos@localhost ~ $ sudo su
Password:
localhost /home/chronos/ # cd
localhost ~ # chown -R root:root /

It might make ChromeOS need recovery so be warned…

Last edited by alas911 (June 7, 2020 21:38:04)

alas911
New Scratcher
2 posts

Crosh Tips and Cool Commands?

Another evil one
crosh> shell
chronos@localhost~ $ mv / /dev/null
Warning, this will wipe your entire system by moving your root directory into the black hole of /dev/null which destroys all input.
ElsieBreeze
Scratcher
100+ posts

Crosh Tips and Cool Commands?

alas911 wrote:

Another evil one
crosh> shell
chronos@localhost~ $ mv / /dev/null
Warning, this will wipe your entire system by moving your root directory into the black hole of /dev/null which destroys all input.
If we're destroying data we might as well have fun as we do it.
sudo find / -type f -exec dd if=/dev/random of={} bs=1024 count=4 \;
This should (haven't tested it) overwrite the first 4kb of every file it can find with random data.
The_Imaginarium
Scratcher
1000+ posts

Crosh Tips and Cool Commands?

Slow down or speed up cursor acceleration. I forget how to do it, because I stopped messing with computers ever since school ended.
Tez1
Scratcher
1 post

Crosh Tips and Cool Commands?

You can test your battery by writing this:

crosh> battery_test (number of seconds)

This will tell you how much of your battery is being used up in the amount of time that you wrote.
LazarLazar--
New Scratcher
1 post

Crosh Tips and Cool Commands?

You can do. ping google.com






Be aware you will need to close the tab because you just get a lot of messages.
robnet
Scratcher
6 posts

Crosh Tips and Cool Commands?

There are no “fun” commands. This was not made as a game. Also, shell does not work on mine
Greg8128
Scratcher
500+ posts

Crosh Tips and Cool Commands?

Get a USB with at least 4 gigs of storage and put an Ubuntu ISO on it. Then you can use it to boot Ubuntu and bypass the excessive lockdowns placed on school computers.
Yes, there are plenty of legitimate reasons to do this. One of them is that many schools will force you to use Eclipse as a Java IDE. Eclipse is bloated and very slow so this is obviously a problem. But if you bypass these restrictions you could use an IDE that doesn't lag for 15 seconds when you type a line of code. My favorite is IntelliJ Community Edition.

Powered by DjangoBB