List of Pre-Installed Tools
This is a curated list of utility tools that are pre-installed on all Ultra.cc servers, and therefore accessible to any user who connects to their slot terminal via Secure Shell (SSH).
This list will include a wide variety of utility tools with several use cases. Some are included in the default linux build, while others are pre-installed by staff as a complement to the official applications provided with your Ultra.cc slot.
Many of the tools will have a usage manual available by using man
. For example, you can execute man curl
, and you will see the usage manual for curl
.
7z
7-Zip is a file archiver with a high compression ratio. It supports 7z (LZMA compression algorithm), ZIP, CAB, ARJ, GZIP, BZIP2, TAR, CPIO, RPM and DEB formats. Compression ratio in the new 7z format is 30-50% better than ratio in ZIP format.
Below you will find two 7z usage examples.
-
List contents of archive:
7z l name-of-archive.7z
-
Extract contents of archive:
7z x name-of-archive.7z
For detailed usage instructions, follow this link.
aria2c
aria2c is a lightweight multi-protocol CLI download utility tool. Supported protocols are HTTP(S), FTP/SFTP, BitTorrent, and MetaLink.
-
Download torrent file and data:
aria2c https://releases.ubuntu.com/22.04/ubuntu-22.04.2-desktop-amd64.iso.torrent
-
Limit Download speed:
aria2c --max-download-limit=10M https://releases.ubuntu.com/22.04.2/ubuntu-22.04.2-desktop-amd64.iso
-
Download URLs from a text file:
aria2c -i multiurl.txt
For detailed usage instructions, follow this link.
cat
Cat (concatenate) is a very useful tool that can output the contents of a file into your terminal, copy content to another file and a lot more.
-
Output file contents in your terminal:
cat filename.txt
-
Copy content of file to another file:
cat filename1.txt > filename2.txt
For detailed usage instructions, follow this link.
crontab
The crontab tool is useful for when you want to automate certain commands and execute them according to a schedule. It's available in most Linux distros by default and is can be accessed by executing crontab -e
.
The scheduling format expressions can look daunting at first glance, but it is easily managed with crontab.guru.
-
Schedule a script to execute 1AM on Monday's:
0 1 * * 1 /home/user/path/to/script.sh
To disable Email being sent to the user account executing the cronjob, you can append > /dev/null 2>&1
to the crontab entry. The above would then be entered like this: 0 1 * * 1 /home/user/path/to/script.sh > /dev/null 2>&1
For detailed usage instructions, follow this link.
curl
curl is a tool to transfer data from or to a server. Supported protocols are HTTP(S), FTP(S)/SFTP, SCP, TFTP, DICT, TELNET, LDAP and FILE. This utility tool is highly flexible and preferred for automation since it is designed to work without user interaction.
-
Output content of a URL in the terminal:
curl https://ultra.cc
-
Download and rename a file:
curl -o hello.zip ftp://example.ftp.net/example.zip
For detailed usage instructions, follow this link
fdupes
fdupes is a utility tool that lets you search and find duplicate files in a given set of directories of your choice. It will compare file sizes and MD5 signatures, followed by a byte-by-byte comparison.
-
Recursively search and show duplicates in terminal:
fdupes -Sr /path/to/directory
-
Recursively search and output duplicates in file:
fdupes -SR /path/to/directory > /path/to/file.txt
For detailed usage instructions, follow this link
ffmpeg
FFmpeg is a video converter capable of encoding and decoding all kinds of video formats. It is a feature rich utility tool that can record, convert and stream audio and video.
-
Display information of media file:
ffmpeg -i video.mkv
-
Convert media file:
ffmpeg -i video_input.mkv video_output.mp4
For detailed usage instructions, follow this link
ffprobe
FFprobe gathers information from multimedia streams and outputs in a human-readable fashion. For example, it can be used to check the format of the container used by a multimedia stream and the format and type of each media stream contained in it.
-
Show media file information:
ffprobe video.mp4
-
Inspect video stream:
ffprobe -hide_banner -v panic -select_streams v:0 -show_entries stream=bit_rate video.mp4
For detailed usage instructions, follow this link
flac
flac is a command-line utility tool for encoding, decoding, testing and analyzing FLAC and other audio streams.
-
Encode WAV to FLAC:
flac filename.wav
For detailed usage instructions, follow this link
Htop
Htop is an interactive process viewer for the Linux terminal, it's a highly useful utility tool as it will let you see all the processes running on the system. It is the equivalent to the task manager on Windows.
It can be accessed from the terminal by executing htop
. Once Htop is open, you can use the mouse or arrow keys to navigate the process list. Shortcuts can be found on the F-row.
-
Setup and configure:
F2
-
Tree view:
F5
-
Kill process:
F9
-
Exit:
F10
For detailed usage instructions, follow this link
iostat
The iostat utility tool is used to show input/output statistics for devices, partitions and network filesystems (NFS). Within the Ultra.cc environment it is most commonly used to monitor the disk IO usage.
-
Show your disk's IO usage:
iostat -xk 2 $(findmnt -T ~ | awk 'END {print $2}')
For detailed usage instructions, follow this link
LFTP
LFTP is a feature rich CLI FTP client that often is favored for its ability to handle multi-segmented transfers. Supported protocols are FTP(S), SFTP, HTTP(S), HFTP, FISH and FILE. It is also able to handle BitTorrent, though it is not recommended as there are better solutions for that.
A detailed setup guide can be found here.
-
Connect to a server:
lftp sftp://username@servername.usbx.me
-
Download file in 5 segments:
pget -n 5 ubuntu.iso
-
Download folder in 5 segments:
mirror --use-pget-n=5 NameOfDirectory
For detailed usage instructions, follow this link
man
The Linux man utility tool is possibly one of the most important tools. The name man is a shortened version of manual pages and it holds the usage manual for basically all the usual Linux build tools and commands.
To access the usage manual, simply execute man <name-of-tool>
. For example, should you want to read the usage manual for Htop, you can execute man htop
. Once inside the usage manual, press h
for help and q
to quit.
-
Access usage manual for man:
man man
-
Search within a usage manual:
/<keyword>
. For example, to search for the word get, type/get
and press ENTER. -
Repeat previous search forward: Press
n
to search previous word forward. -
Repeat previous search backwards: Press
N
to search previous word backwards.
For detailed usage instructions, follow this link
md5sum
The md5sum utility tool is designed to verify data integrity using the MD5 algorithm. This tool is useful if you have downloaded a file and want to make sure it is the correct file, and not some malicious virus that can corrupt your system.
-
Store MD5 checksum in file:
md5sum /path/to/file.iso > checksum.md5
-
Verify checksum of file:
md5sum -c checksum.md5
For detailed usage instructions, follow this link
mediainfo
MediaInfo supplies technical and tag information about a video or audio file. Information can be viewed and exported in different formats, such as text, CSV and HTML.
-
Display media file information:
mediainfo video.mkv
-
Display media file information with HTML tags:
mediainfo --Output=HTML video.mkv
For detailed usage instructions, follow this link
metaflac
The metaflac utility tool can list, add, remove, or edit metadata in one or more FLAC files.
-
Show MD5 signature of file:
metaflac --show-md5sum file1.flac
-
Remove tags from multiple files:
metaflac --remove-tag=DESCRIPTION --remove-tag=COMMENT file1.flac file2.flac file3.flac
For detailed usage instructions, follow this link
mktorrent
The mktorrent utility tool is used to create BitTorrent metainfo files used by trackers and torrent clients. It can create metainfo files for single files or complete directories.
-
Set private flag:
mktorrent -p filename.torrent
-
Add comment to metainfo:
mktorrent -c <add-comment-here> filename.torrent
For detailed usage instructions, follow this link
mkvtoolnix-gui
mkvtoolnix-gui is a set of utility tools used to create, alter and inspect Matroska (MKV) files. This toolset is very useful for those who create encodes or need to extract information from media files.
As your Ultra.cc slot doesn't have access to an X server, the mkvtoolnix-gui cannot be used. However, the utility tools that are included can be used from a terminal. See below for more information about the individual tools.
mkvextract
mkvextract is included in mkvtoolnix-gui, and as the name suggests, this utility tool can extract tracks from Matroska (MKV) media containers. At the time of writing this, it can extract tracks, tags, attachments, chapters, CUE sheets and timecodes.
-
Extract tracks:
mkvextract tracks source.mkv --raw 1:destination.raw
-
Extract tags into a XML file:
mkvextract tags source.mkv > tags.xml
For detailed usage instructions, follow this link
mkvinfo
The mkvinfo utility tool can be used to print information about elements in Matroska (MKV) files. The output can be limited to a list of tracks in the file, including information about the codecs used.
-
Save info to file:
mkvinfo -v media.mkv -r info.txt
For detailed usage instructions, follow this link
mkvmerge
The mkvmerge utility tool can be used to merge streams from several media files into a Matroska (MKV) file.
-
Merge two media files into one:
mkvmerge -o full.mkv file1.mkv + file2.mkv
For detailed usage instructions, follow this link
mkvpropedit
The mkvpropedit utility tool can be used to modify properties of Matroska (MKV) files without having to do a complete remux.
-
Name specific track:
mkvpropedit media.mkv --edit track:a2 --set name=Comments
For detailed usage instructions, follow this link