mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-05 19:06:37 +02:00
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[940],{1908:(n,e,s)=>{s.r(e),s.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>a,frontMatter:()=>c,metadata:()=>i,toc:()=>t});const i=JSON.parse('{"id":"user-guide/snigdha-os-terminal-shortcuts","title":"Introduction to Terminal","description":"Launch Terminal","source":"@site/i18n/uk/docusaurus-plugin-content-docs/current/user-guide/snigdha-os-terminal-shortcuts.md","sourceDirName":"user-guide","slug":"/user-guide/snigdha-os-terminal-shortcuts","permalink":"/documentation/uk/user-guide/snigdha-os-terminal-shortcuts","draft":false,"unlisted":false,"editUrl":"https://github.com/Snigdha-OS/documentation/tree/master/docs/user-guide/snigdha-os-terminal-shortcuts.md","tags":[],"version":"current","lastUpdatedAt":1736602694000,"sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"User Guide","permalink":"/documentation/uk/category/user-guide"},"next":{"title":"Shortcut for Developers","permalink":"/documentation/uk/user-guide/snigdha-os-command-shorcuts"}}');var r=s(6070),l=s(6599);const c={sidebar_position:1},d="Introduction to Terminal",o={},t=[{value:"Launch Terminal",id:"launch-terminal",level:2},{value:"\ud83c\udf10 <strong>Desktop Environments & Window Managers</strong>",id:"-desktop-environments--window-managers",level:3},{value:"Shortcodes(Regular)",id:"shortcodesregular",level:2},{value:"System and Package Management",id:"system-and-package-management",level:3},{value:"Navigation",id:"navigation",level:3}];function h(n){const e={br:"br",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,l.R)(),...n.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.header,{children:(0,r.jsx)(e.h1,{id:"introduction-to-terminal",children:"Introduction to Terminal"})}),"\n",(0,r.jsx)(e.h2,{id:"launch-terminal",children:"Launch Terminal"}),"\n",(0,r.jsx)(e.p,{children:"Here\u2019s a list of common shortcuts to launch the terminal in various desktop environments and window managers on Snigdha OS, along with relevant emojis:"}),"\n",(0,r.jsxs)(e.h3,{id:"-desktop-environments--window-managers",children:["\ud83c\udf10 ",(0,r.jsx)(e.strong,{children:"Desktop Environments & Window Managers"})]}),"\n",(0,r.jsxs)(e.ol,{children:["\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"KDE Plasma"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Ctrl + Alt + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"GNOME"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Super (Windows key) + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"XFCE"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Ctrl + Alt + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"LXQt"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Ctrl + Alt + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"Cinnamon"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Ctrl + Alt + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"MATE"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Ctrl + Alt + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:"i3wm"})," (Tiling Window Manager)"]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Mod + Enter"}),' (where "Mod" is usually the ',(0,r.jsx)(e.code,{children:"Super"})," key or ",(0,r.jsx)(e.code,{children:"Alt"}),")"]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:"Sway"})," (Wayland-based i3-like WM)"]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Mod + Enter"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"Openbox"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Super + Enter"})," (or configure manually)"]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"AwesomeWM"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Mod + Return"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"Fluxbox"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Super + Return"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"Budgie"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Super + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"LXDE"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Ctrl + Alt + T"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsx)(e.p,{children:(0,r.jsx)(e.strong,{children:"Herbstluftwm"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["Shortcut: ",(0,r.jsx)(e.code,{children:"Mod + Return"})]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(e.h2,{id:"shortcodesregular",children:"Shortcodes(Regular)"}),"\n",(0,r.jsx)(e.p,{children:"Here\u2019s the explanation of your aliases with relevant emojis:"}),"\n",(0,r.jsx)(e.h3,{id:"system-and-package-management",children:"System and Package Management"}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:"alias ls='ls -l --color=auto'"})})," \ud83d\udda5\ufe0f\ud83c\udf08:",(0,r.jsx)(e.br,{}),"\n","List files in long format (",(0,r.jsx)(e.code,{children:"-l"}),") and colorize the output for better readability (",(0,r.jsx)(e.code,{children:"--color=auto"}),")."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:"alias grep='grep --color=auto'"})})," \ud83d\udd0d\ud83c\udf08:",(0,r.jsx)(e.br,{}),"\n","Highlight matching text in color when using ",(0,r.jsx)(e.code,{children:"grep"})," for easier identification of search results."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias rs="sudo pacman -Rs"'})})," \ud83d\udeab\ud83d\udce6:",(0,r.jsx)(e.br,{}),"\n","Remove a package and its dependencies (",(0,r.jsx)(e.code,{children:"pacman -Rs"}),") with ",(0,r.jsx)(e.code,{children:"sudo"}),"."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias s="sudo pacman -S"'})})," \ud83d\udce6\u2728:",(0,r.jsx)(e.br,{}),"\n","Install a package with ",(0,r.jsx)(e.code,{children:"pacman"})," using the shortcut ",(0,r.jsx)(e.code,{children:"s"}),", which runs ",(0,r.jsx)(e.code,{children:"sudo pacman -S"}),"."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias sy="sudo pacman -Syy"'})})," \ud83d\udd04\ud83d\udce6:",(0,r.jsx)(e.br,{}),"\n","Force sync the package databases (",(0,r.jsx)(e.code,{children:"-Syy"}),") to fetch the latest information from mirrors."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias syyu="sudo pacman -Syyu"'})})," \u2b06\ufe0f\ud83d\udce6\ud83d\udcbb:",(0,r.jsx)(e.br,{}),"\n","Perform a system update by forcing a database refresh (",(0,r.jsx)(e.code,{children:"-Syy"}),") and upgrading all packages (",(0,r.jsx)(e.code,{children:"-u"}),")."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias lck="sudo rm /var/lib/pacman/db.lck"'})})," \ud83d\udd12\ud83d\uddd1\ufe0f:",(0,r.jsx)(e.br,{}),"\n","Remove the lock file (",(0,r.jsx)(e.code,{children:"db.lck"}),") that may block ",(0,r.jsx)(e.code,{children:"pacman"})," from functioning properly."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias vm="sudo systemctl enable --now vmtoolsd.service"'})})," \ud83d\udda5\ufe0f\u2699\ufe0f:",(0,r.jsx)(e.br,{}),"\n","Enable and start the VMware Tools service (",(0,r.jsx)(e.code,{children:"vmtoolsd.service"}),") in a virtual machine."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:"alias rip=\"expac --timefmt='%Y-%m-%d %T' '%l\\t%n %v' | sort | tail -200 | nl\""})})," \ud83d\udd52\ud83d\udccb:",(0,r.jsx)(e.br,{}),"\n","List the most recent 200 installed packages, sorted by date, with numbered entries."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias ys="yay -S"'})})," \ud83d\ude80\ud83d\udce6:",(0,r.jsx)(e.br,{}),"\n","Install packages from the AUR using ",(0,r.jsx)(e.code,{children:"yay"})," with the ",(0,r.jsx)(e.code,{children:"ys"})," shortcut."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias pas="paru -S"'})})," \ud83d\udee0\ufe0f\ud83d\udce6:",(0,r.jsx)(e.br,{}),"\n","Install packages from the AUR using ",(0,r.jsx)(e.code,{children:"paru"})," with the ",(0,r.jsx)(e.code,{children:"pas"})," shortcut."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias wget="wget -c"'})})," \ud83c\udf10\u2b07\ufe0f:",(0,r.jsx)(e.br,{}),"\n","Resume interrupted downloads with the ",(0,r.jsx)(e.code,{children:"-c"})," option for ",(0,r.jsx)(e.code,{children:"wget"}),"."]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(e.h3,{id:"navigation",children:"Navigation"}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias ..="cd .."'})})," \ud83d\udd3c\ud83d\udcc1:",(0,r.jsx)(e.br,{}),"\n","Move up one directory level using the shortcut ",(0,r.jsx)(e.code,{children:".."})," instead of typing ",(0,r.jsx)(e.code,{children:"cd .."}),"."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias home="cd ~"'})})," \ud83c\udfe0\ud83d\udcbb:",(0,r.jsx)(e.br,{}),"\n","Quickly go to your home directory with the ",(0,r.jsx)(e.code,{children:"home"})," alias."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias docs="cd ~/Documents"'})})," \ud83d\udcc2\ud83d\udcdd:",(0,r.jsx)(e.br,{}),"\n","Navigate to your ",(0,r.jsx)(e.code,{children:"Documents"})," folder with the ",(0,r.jsx)(e.code,{children:"docs"})," alias."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias dl="cd ~/Downloads"'})})," \ud83d\udce5\ud83d\uddc2\ufe0f:",(0,r.jsx)(e.br,{}),"\n","Go to the ",(0,r.jsx)(e.code,{children:"Downloads"})," folder using the ",(0,r.jsx)(e.code,{children:"dl"})," alias."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias music="cd ~/Music"'})})," \ud83c\udfb5\ud83c\udfb6:",(0,r.jsx)(e.br,{}),"\n","Navigate to your ",(0,r.jsx)(e.code,{children:"Music"})," folder with the ",(0,r.jsx)(e.code,{children:"music"})," alias."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias pics="cd ~/Pictures"'})})," \ud83d\uddbc\ufe0f\ud83d\udcf8:",(0,r.jsx)(e.br,{}),"\n","Quickly jump to the ",(0,r.jsx)(e.code,{children:"Pictures"})," folder using the ",(0,r.jsx)(e.code,{children:"pics"})," alias."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias vids="cd ~/Videos"'})})," \ud83c\udfac\ud83d\udcf9:",(0,r.jsx)(e.br,{}),"\n","Go to the ",(0,r.jsx)(e.code,{children:"Videos"})," folder with the ",(0,r.jsx)(e.code,{children:"vids"})," alias."]}),"\n"]}),"\n",(0,r.jsxs)(e.li,{children:["\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.strong,{children:(0,r.jsx)(e.code,{children:'alias desk="cd ~/Desktop"'})})," \ud83d\udda5\ufe0f\ud83d\udcbb:",(0,r.jsx)(e.br,{}),"\n","Jump to the ",(0,r.jsx)(e.code,{children:"Desktop"})," folder using the ",(0,r.jsx)(e.code,{children:"desk"})," alias."]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"These aliases with emojis make it easy to remember their functions and provide a fun, visual way to enhance your terminal experience!"})]})}function a(n={}){const{wrapper:e}={...(0,l.R)(),...n.components};return e?(0,r.jsx)(e,{...n,children:(0,r.jsx)(h,{...n})}):h(n)}},6599:(n,e,s)=>{s.d(e,{R:()=>c,x:()=>d});var i=s(758);const r={},l=i.createContext(r);function c(n){const e=i.useContext(l);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function d(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:c(n.components),i.createElement(l.Provider,{value:e},n.children)}}}]); |