Skip to content
← Back to Community
Python Operating System Version 2.1.9!
Profile icon
h
has Hacker Plan
hg0428

Commands:

cd - change directory
ls -list the contents of the current working directory
pwd - show the current print
mkdir - make directory
mkf - make file
rm - remove a file or directory
exit - exit
editf - edit file
help - shows commands and thier uses
echo - prints first argument
function - make your own function
eracef - eraces a file
apps - view and use apps
openf - read a file
cpp - compile c++ file
python - python3 interpreter
clear - clear the screen
./ - execute a file
cp - copy
mv - move
$(var name) = (value) - define variable that you can use in any command

Please comment any ideas or bugs!

https://repl.it/upgrade/hg0428

My other posts:

https://repl.it/talk/share/Python-Auto-correct/21307
https://repl.it/talk/share/Secret-Message-encoderdecoder/21306
https://repl.it/talk/share/Information-based-AND-brute-force-Password-Cracker/23116

Now you can make your own functions and make Variables!!

Voters
Profile icon
Yek
Profile icon
AlephZero
Profile icon
master112
Profile icon
superawsomeness
Profile icon
ReneeGouge
Profile icon
amasad
Profile icon
BreakfastBird
Profile icon
JohnathanGurak
Profile icon
Highwayman
Profile icon
TristanMisja
Comments
hotnewtop
Profile icon
[deleted]

is this a troll post?
you can just call os.system(command here) and do the exact same thing as this, without the 20000 hardcoded lines.

Profile icon
[deleted]

@hg0428 because this entire thing can be simplified to 1 line, os.system(cmd)

Profile icon
TristanMisja

WOW!

Profile icon
hg0428
Profile icon
TristanMisja

@hg0428 No joke this repl is awesome it's practically like the actual terminal

Profile icon
hg0428
Profile icon
skull22k21

bruh this is the best, me upvote

vouch

Profile icon
BetaaStudios

Traceback (most recent call last):
File "main.py", line 8, in
reset()
File "/home/runner/NTZfc7135eL/reset.py", line 8, in reset
open("/home/runner/FIlesystem/funct.txt", "w").write("")
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/FIlesystem/funct.txt'

Profile icon
hg0428

What did you do to cause that? @BetaaStudios

Profile icon
zplusfour

ADD VIM

Profile icon
hg0428

Can't make that with python.
Python limits what you can do when accepting input. With python, you can only get input after they press enter, if I was using C, I could/would make [email protected]

Profile icon
zplusfour

@hg0428 too late

Profile icon
zplusfour

add whoami

Profile icon
Highwayman

One thing, you forgot to make an option to exit the repl/shell/os entirely like exit in bash.

Profile icon
hg0428

I added that
@Highwayman

Profile icon
Highwayman

@hg0428 👍