Linux
Just a linux cheatsheet
common commands
- move or rename a file with
mv - make a new directory (folder) with
mkdir - navigate the file system with
cd,ls, andtree - use
catto quickly display file contents
search with fd and rg
looking for files and folders?
use fd: “fd is a program to find entries in your filesystem. It is a simple, fast and user-friendly alternative to find. While it does not aim to support all of find’s powerful functionality, it provides sensible (opinionated) defaults for a majority of use cases.”
looking for text inside of files?
use rg: “ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. (To disable all automatic filtering by default, use rg -uuu.) ripgrep has first class support on Windows, macOS and Linux, with binary downloads available for every release. ripgrep is similar to other popular search tools like The Silver Searcher, ack and grep.”
play audio and video
use mpv: “mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.”
mpv . --shuffleto shuffle through media in directories (it will recurse through)mpv . --shuffle --no-audio-displayto do the same thing but do not display the graphical overlay when playing audio
get current system info
want a quick overview of your system?
use fastfetch: “Fastfetch is a neofetch-like tool for fetching system information and displaying it in a visually appealing way. It is written mainly in C, with a focus on performance and customizability. Currently, it supports Linux, macOS, Windows 8.1+, Android, FreeBSD, OpenBSD, NetBSD, DragonFly, Haiku and SunOS (illumos, Solaris).”
want a “task manager” view?
use btop: “Resource monitor that shows usage and stats for processor, memory, disks, network and processes.”
(more will be added later)