
Modrinth · Minecraft mod
mcsudo
Add Linux commands to Minecraft.
Quick answer
Which mcsudo release should I use?
mcsudo 0.0.4 targets 1.21.2, 1.21.3 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.
Where it goes
Is mcsudo required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does mcsudo 0.0.4 need?
0.0.4. Change the file and its required mods may change too.
Install ctLibMod first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add mcsudo without breaking your instance.
Built for mcsudo 0.0.4. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.0.4. It targets 1.21.2, 1.21.3 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install ctLibMod first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.0.4. It opens that exact file at the source.
About this project
What does mcsudo add?
Sudo
This module adds some commonly used Linux commands to the game, including sudo, echo, cat, and export.
Some Linux mechanisms have also been added, such as the home folder and the .bashrc file.
Instructions
Parameters
Some commands support parameters, you can use _ plus parameters.
Variables
Some commands also support the use of variables. You can use variables in the form of ${variable name}. For how to set variables, please see export.
Dynamic variables
Dynamic variables are recalculated on every execution, here are all dynamic variables:
home: the current user’s home folderuuid: uuid of the current userplayer: the username of the current userexp: the current user’s experience valuelevel: the level of the current userhealth: current user’s healthmax_health: the current user’s maximum healthworld: current world namelocation: current location (format is x.y.z)server: current server namemotd: motd of the current servertime: current time (Unix timestamp)
Order
echo
usage:
/echo <content> # Output content
cat
usage:
/cat <file path> # Output file content
write
usage:
/write <file path> <content> #Write file content, which will overwrite the original content.
export
usage:
/export <variable name> <variable value> #Set variables
/export public_<variable name> <variable value> # Set public variables, sudo permissions are required
apt
Install mods from Modrinth.
usage:
/apt install <slug> <version> # Install module
/apt search <slug> # Search module
image of apt command:
bash
Call the system to execute bash commands (only supports Linux).
usage:
/bash <command>
WARNNING:THIS COMMAND IS DANGEROUS. IT MAYBE DAMAGE YOUR SYSTEM.
neofetch
You know the command.
Special files
.bashrc
This file executes the commands inside when the player logs in. The commands are separated by ; and there is no / before the command.
The file is located in home/<player name>/.bashrc. Players can modify this file without sudo permissions.
Project description from Modrinth.
Pick your setup
mcsudo by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.3
2 loader builds1.21.2
2 loader builds1.21.1
2 loader builds1.21
2 loader builds1.20.6
2 loader builds1.20.5
2 loader builds1.20.4
2 loader builds1.20.3
2 loader builds1.20.2
2 loader builds1.20.1
2 loader builds1.20
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
mcsudo versions and loaders
0.0.4
sudo-0.0.4.jar
6 Nov 2024
0.0.3
sudo-0.0.3.jar
31 Jul 2024
0.0.2
sudo-0.0.2.jar
26 Apr 2024
0.0.1
sudo-0.0.1.jar
19 Apr 2024
Looking for an older file? The official Modrinth project page is in Resources.