PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/command-line/cheat-sheet-1c3e61018567bb22.js

js codedex.io collected 2026-09-25 14:55:44 UTC 17,659 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1283],{84909:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/command-line/cheat-sheet",function(){return t(44756)}])},35497:function(n,e,t){"use strict";t.d(e,{De:function(){return s}});var r=t(82729),o=t(85893),i=t(9473),a=t(19521),l=t(609);function _templateObject(){let n=(0,r._)(["\n  max-width: 100%;\n  width: 100%;\n  color: ",";\n  h1.typewriter {\n    color: ",';\n  }\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n    display: block;\n    font-weight: bold;\n    scroll-margin-top: 8rem;\n  }\n\n  h1 code {\n    font-family: "PixelGridM";\n    letter-spacing: 0.03rem;\n  }\n\n  h2 code,\n  h3 code,\n  h4 code,\n  h5 code,\n  h6 code {\n    font-family: "PixelGridS";\n    letter-spacing: 0.03rem;\n  }\n\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n    span {\n      color: ',";\n    }\n  }\n\n  a {\n    color: ",';\n  }\n\n  a,\n  strong {\n    white-space: pre-wrap; /* CSS3 */\n    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */\n    white-space: -pre-wrap; /* Opera 4-6 */\n    white-space: -o-pre-wrap; /* Opera 7 */\n    word-wrap: break-word; /* Internet Explorer 5.5+ */\n  }\n\n  strong {\n    font-weight: 800;\n  }\n\n  p {\n    display: block;\n    margin-top: 1em;\n    margin-bottom: 1em;\n    margin-left: 0;\n    margin-right: 0;\n  }\n\n  figure {\n    display: block;\n    margin-top: 1em;\n    margin-bottom: 1em;\n    margin-left: 40px;\n    margin-right: 40px;\n  }\n\n  blockquote {\n    display: flex;\n    flex-direction: column;\n    gap: 1em;\n    margin-top: 1em;\n    margin-bottom: 1em;\n    margin-left: 0;\n    margin-right: 40px;\n    padding-left: 1rem;\n    border-left: 0.25rem solid #3d444d;\n  }\n\n  dl {\n    display: block;\n    margin-top: 1em;\n    margin-bottom: 1em;\n    margin-left: 0;\n    margin-right: 0;\n  }\n\n  dd {\n    display: block;\n    margin-left: 40px;\n  }\n\n  p,\n  li,\n  kbd {\n    font-family: "Mulish", sans-serif;\n    font-size: 16px;\n    font-weight: 500;\n  }\n\n  .li-p-with-image {\n    p {\n      all: unset;\n    }\n  }\n\n  td,\n  th {\n    color: black;\n  }\n\n  .nes-balloon {\n    color: black;\n  }\n\n  /* Code in text */\n  p code,\n  li code,\n  dd code,\n  td code {\n    /* font-family: "Work Sans", Dogica, monospace; */\n    /* font-family: "Fira Code", monospace; */\n    font-family: "Noto Sans Mono", monospace;\n    font-weight: 400;\n    background: rgba(175, 184, 193, 0.2);\n    word-wrap: break-word;\n    box-decoration-break: clone;\n    padding: 0.05em 0.2em;\n    border-radius: 6px;\n    font-size: 15px;\n  }\n\n  pre {\n    // fallback color for mislabeled or unlabeled mdx code blocks\n    color: #c9d1d9;\n    background-color: #0d1117;\n    border-radius: 5px;\n    position: relative;\n  }\n\n  pre code {\n    display: block;\n    font-family: monospace;\n    font-size: inherit;\n    overflow-x: auto;\n  }\n\n  kbd {\n    background-color: #eee;\n    border-radius: 3px;\n    border: 1px solid #b4b4b4;\n    box-shadow:\n      0 1px 1px rgba(0, 0, 0, 0.2),\n      0 2px 0 0 rgba(255, 255, 255, 0.7) inset;\n    color: #333;\n    display: inline-block;\n    font-size: 0.8em;\n    //font-weight: 700;\n    text-shadow: 0 1px 0 white;\n    line-height: 1;\n    padding: 2px 6px;\n    white-space: nowrap;\n  }\n\n  details {\n    margin-top: 3rem;\n    margin-bottom: 2rem;\n  }\n\n  summary::-webkit-details-marker {\n    display: none;\n  }\n\n  summary > div {\n    width: calc(100% - 50px);\n    display: inline-block;\n    vertical-align: middle;\n  }\n\n  summary {\n    display: block;\n    cursor:\n      url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n        14 0,\n      pointer;\n  }\n\n  summary:before {\n    /* content: "►"; */\n    margin: 0px 10px 0 0;
1\n    width: 20px;\n  }\n\n  details[open] summary:before {\n    /* content: "▼"; */\n  }\n\n  .with-marker {\n    margin: 0px;\n    margin: 2rem 0px;\n    summary:before {\n      content: ',";\n    }\n\n    summary {\n      cursor:\n        url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n          14 0,\n        pointer;\n    }\n  }\n\n  .with-marker[open] summary:before {\n    content: ",";\n    display: inline-block;\n    transform: rotate(180deg);\n  }\n\n  img {\n    border-radius: 5px;\n  }\n\n  th {\n    text-align: center;\n    margin: 10px;\n    background-color: ",';\n    font-family: "Mulish", sans-serif;\n    font-weight: 500;\n    border: 2px solid ',";\n    font-size: 16px;\n    padding: 10px;\n    min-width: fit-content;\n    color: ",' !important;\n    line-height: 26px;\n  }\n\n  td {\n    color: #212529;\n    font-family: "Mulish", sans-serif;\n    font-weight: 500;\n    font-size: 16px;\n    font-style: normal;\n    //font-weight: 400;\n    line-height: 26px;\n    border: 2px solid #212529;\n    border: 2px solid ',";\n    padding: 7px;\n    padding-left: 10px;\n    color: "," !important;\n  }\n\n  .mdx-content-container {\n    width: 100%;\n    max-width: 100%;\n\n    div.table-container {\n      overflow-x: auto;\n      width: 100%;\n      max-width: 100%;\n\n      table {\n        min-width: 350px;\n        width: 100%;\n        overflow-x: auto;\n        display: block;\n      }\n    }\n  }\n\n  ",' {\n    h1 {\n      margin: 32px 0;\n      font-size: 1.5rem;\n\n      font-feature-settings:\n        "liga" off,\n        "clig" off;\n      /* Pixel Grid/3XL */\n      font-family: "PixelGridM";\n      letter-spacing: 0.03rem;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.96px;\n    }\n\n    h2 {\n      margin: 2rem 0 1.5rem 0;\n      font-size: 1.1rem;\n      font-feature-settings:\n        "liga" off,\n        "clig" off;\n      /* Pixel Grid/2XL */\n      font-family: "PixelGridS";\n      letter-spacing: 0.03rem;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n    }\n\n    h3 {\n      margin: 2rem 0;\n      font-size: 0.9rem;\n      font-feature-settings:\n        "liga" off,\n        "clig" off;\n      /* Pixel Grid/2XL */\n      font-family: "PixelGridS";\n      letter-spacing: 0.03rem;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n    }\n    h4 {\n      margin: 1.5rem 0;\n      font-size: 0.8rem;\n    }\n    h5 {\n      margin: 1rem 0;\n      font-size: 0.6rem;\n    }\n\n    pre code {\n      display: block;\n      font-family: monospace;\n      font-size: inherit;\n      padding: 1rem 2rem;\n    }\n\n    .table-container {\n      overflow: auto;\n    }\n  }\n\n  '," {\n    h1 {\n      margin: 3rem 0;\n      font-size: 1.5rem;\n    }\n    h2 {\n      margin: 2.5rem 0 1.5rem 0;\n      font-size: 1.2rem;\n    }\n\n    h3 {\n      margin: 2rem 0;\n      font-size: 1rem;\n    }\n    h4 {\n      margin: 1.5rem 0;\n      font-size: 0.8rem;\n    }\n    h5 {\n      margin: 1rem 0;\n      font-size: 0.6rem;\n    }\n\n    pre code {\n      display: block;\n      font-family: monospace;\n      font-size: inherit;\n      padding: 1rem 2rem;\n    }\n  }\n\n  "," {\n    /* margin-bottom: ","; */\n\n    overflow-wrap: break-word;\n\n    /* IE and Edge */\n    -ms-overflow-style: none;\n\n    /* Firefox */\n    scrollbar-width: none;\n\n    &::-webkit-scrollbar {\n      display: none;\n    }\n\n    // stops the overflow bug in chromium based browsers for mathematical equations\n    .katex-mathml {\n      display: none !important;\n    }\n\n    h1 {\n      margin: 32px 0;\n      font-size: 1.4rem;\n    }\n\n    h2 {\n      margin: 2rem 0 1.5rem 0;\n      font-size: 1.2rem;\n    }\n\n    h3 {\n      margin: 2rem 0;\n      font-size: 1rem;\n    }\n    h4 {\n      margin: 1.5rem 0;\n      font-size: 0.8rem;\n    }\n    h5 {\n      margin: 1rem 0;\n      font-size: 0.8rem;\n    }\n    pre code {\n      display: block;\n      font-family: monospace;\n      font-size: inherit;\n      padding: ",";\n    }\n  }\n\n  "," {\n    /* margin-top: 6.5rem;\n    margin-bottom: ","; */\n\n    h1 {\n      margin: 32px 0;\n      font-size: 28px;\n    }\n\n    h2 {\n      margin: 2rem 0 1.5rem 0;\n      font-size: 22px;\n    }\n    h3 {\n      margin: 2rem 0;\n      font-size: 20px;\n    }\n    h4 {\n      margin: 1.5rem 0;\n      font-size: 1rem;\n    }\n    h5 {\n      margin: 1rem 0;\n      font-size: 1rem;\n    }\n  }\n\n  "," {\n    max-width: ",';\n  }\n\n  p.need-help:hover {\n    cursor:\n      url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n        14 0,\n      pointer;\n  }\n\n  &.dark {\n    pre {\n      background-color: #1d2332;\n      code {\n        background-color: #1d2332;\n      }\n    }\n  }\n\n  // "demo" provides plain styling for example elements in the narrative.\n  // Currently in HTML ex 18 and ex 19.\n  .demo {\n    all: revert;\n    border: 1px solid #1d2332;\n    border-radius: 4px;\n    background: #e2e8f0;\n    color: black;\n    font-family: "Mulish", sans-serif;\n    font-weight: 500;\n    max-width: 100%;\n    font-size: 16px;\n  }\n\n  // visual feedback for learners\n  .demo:invalid {\n    outline: 2px solid red;\n  }\n\n  input.demo {\n    width: 180px;\n  }\n']);
1return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,r._)(["\n  "," {\n    flex: 0 0 100%;\n    width: 100%;\n  }\n\n  "," {\n    flex: 1 1 ",";\n    min-width: 0;\n  }\n"]);return _templateObject1=function(){return n},n}let c=a.default.section.withConfig({componentId:"sc-ff6bd155-0"})(_templateObject(),n=>n.theme.colors.text1,n=>n.theme.colors.text1,n=>n.theme.colors.hyperLink,n=>n.theme.colors.hyperLink,n=>"light"===n.theme.mode?'url("/images/courses/black-arrow-svg.svg")':'url("/images/courses/white-arrow-svg.svg")',n=>"light"===n.theme.mode?'url("/images/courses/black-arrow-svg.svg")':'url("/images/courses/white-arrow-svg.svg")',n=>"light"===n.theme.mode?"#f9f5fe":"#52A5FF",n=>"light"===n.theme.mode?"black":"#244B71",n=>n.theme.colors.text1,n=>"light"===n.theme.mode?"#212529":"#244C73",n=>n.theme.colors.text1,n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md},n=>{let{singlePane:e}=n;return e?"5rem":"0"},n=>{let{threePanel:e}=n;return e?" 1rem 2rem;":" 1rem 4rem;"},n=>{let{theme:e}=n;return e.breakpoints.lg},n=>{let{singlePane:e}=n;return e?"5rem":"0"},n=>{let{theme:e}=n;return e.breakpoints.xl},n=>n.maxHeightCapIfEditorEnabled?"45vw":"80vw"),s=a.default.div.withConfig({componentId:"sc-ff6bd155-1"})(_templateObject1(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.md},n=>n.isEditorEnabled?"55%":"90%");e.ZP=function(n){let{children:e,threePanel:t=!1}=n,r=(0,i.v9)(l.o4)||"dark";return(0,o.jsx)(c,{className:"challenge-container ".concat("dark"===r?"dark":""),threePanel:t,children:e})}},17518:function(n,e,t){"use strict";t.d(e,{Z:function(){return challenge_CodeBlockEnhancer}});var r=t(85893),o=t(11163),i=t(67294),a=t(20745),l=t(82729),c=t(19521),s=t(55788),m=t(66653);function _templateObject(){let n=(0,l._)(["\n  all: unset;\n  color: white;\n  margin: 0.3rem;\n  margin-top: 0.37rem;\n  padding: 0 0.25rem;\n  padding-bottom: 0.25rem;\n  border: 1px solid transparent;\n  opacity: 0.7;\n  border-radius: 5px;\n  transition: all 0.15s ease;\n\n  &:focus {\n    outline: none;\n  }\n\n  &:hover {\n    opacity: 1;\n    background: hsla(0, 0%, 100%, 0.2);\n    border: 1px solid hsla(0, 0%, 100%, 0.7);\n  }\n\n  &.active {\n    color: lightgreen;\n    border: 1px solid lightgreen;\n  }\n"]);return _templateObject=function(){return n},n}let d=c.default.button.withConfig({componentId:"sc-9fa15ce7-0"})(_templateObject());var challenge_CopyButton=function(n){let{target:e}=n,[t,o]=(0,i.useState)(!1);return(0,r.jsx)(d,{className:"nes-pointer ".concat(t?"active":""),style:{position:"absolute",right:0,top:0},onClick:()=>{let n=document.querySelector(e).textContent;n=n.trim();let t=new Blob([n],{type:"text/plain;charset=utf-8"});try{navigator.clipboard.write([new ClipboardItem({"text/plain":t})])}catch(n){console.log(n)}o(!0),setTimeout(()=>{o(!1)},1e3)},children:t?(0,r.jsx)(m.vyQ,{color:"lightgreen"}):(0,r.jsx)(s.m54,{style:{transform:"rotate(270deg)"}})},e)},p=t(52079),challenge_CodeBlockEnhancer=function(){let n=(0,o.useRouter)();return(0,i.useEffect)(()=>{if(!n.asPath)return;let e=[],t=[];try{let n=document.querySelectorAll("pre");n.forEach((n,o)=>{if(!document.contains(n))return;let i="code-block-".concat(o);if(n.setAttribute("id",i),t.push((0,p.rE)(n)),n.querySelector(".copy-button"))return;let l=document.createElement("div");l.classList.add("copy-button"),l.classList.add("nes-pointer");try{if(document.contains(n)){n.appendChild(l);let t=(0,a.createRoot)(l);e.push({root:t,container:l,parent:n}),t.render((0,r.jsx)(challenge_CopyButton,{target:"#".concat(i)}))}}catch(n){console.log("Failed to add copy button",n)}})}catch(n){console.log("CodeBlockEnhancer failed:",n)}return()=>{t.forEach(n=>{try{n()}catch(n){console.log("Failed to detach scroll fade:",n)}}),e.forEach(n=>{let{root:e,container:t,parent:r}=n;try{e.unmount()}catch(n){console.log("Failed to unmount React root:",n)}try{t&&r&&document.contains(t)&&t.parentNode===r&&r.removeChild(t)}catch(n){console.log("Failed to remove copy button element:",n)}})}},[n.asPath]),null}},34105:function(n,e,t){"use strict";var r=t(82729),o=t(85893),i=t(19521);
1function _templateObject(){let n=(0,r._)([""]);return _templateObject=function(){return n},n}let a=i.default.img.withConfig({componentId:"sc-144714f-0"})(_templateObject());e.Z=function(n){let{link:e,description:t,marginTop:r="0px"}=n;return(0,o.jsx)(a,{src:e,alt:t,style:{marginTop:r}})}},52079:function(n,e,t){"use strict";t.d(e,{rE:function(){return attachScrollFade},rj:function(){return attachScrollFadeUnder}}),t(67294);let r="data-scroll-fade",NOOP_CLEANUP=()=>{},o=new WeakMap,i=null;function updateFade(n){let e=n.scrollWidth-n.clientWidth>1,t=n.scrollLeft+n.clientWidth>=n.scrollWidth-1;e&&!t?n.setAttribute(r,"true"):n.removeAttribute(r)}function bindScrollFade(n){let e=o.get(n);if(e)return updateFade(n),e;let handleScroll=()=>updateFade(n);n.addEventListener("scroll",handleScroll,{passive:!0});let t="undefined"==typeof ResizeObserver?null:(i||(i=new ResizeObserver(n=>{n.forEach(n=>{n.target instanceof HTMLElement&&updateFade(n.target)})})),i);null==t||t.observe(n),updateFade(n);let cleanup=()=>{n.removeEventListener("scroll",handleScroll),null==t||t.unobserve(n),n.removeAttribute(r),o.delete(n)};return o.set(n,cleanup),cleanup}function attachScrollFade(n){let e=function(n){let e=[n],t=n.querySelector(":scope > code");return t&&e.push(t),e.filter(n=>/auto|scroll/.test(getComputedStyle(n).overflowX))}(n);if(0===e.length)return NOOP_CLEANUP;let t=e.map(bindScrollFade);return()=>t.forEach(n=>n())}function attachScrollFadeUnder(n){let e=new Set;if(n instanceof HTMLElement){let t=n.closest("pre");t&&e.add(t)}n.querySelectorAll("pre").forEach(n=>e.add(n));let t=[...e].map(attachScrollFade);return()=>t.forEach(n=>n())}},44756:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return F}});var r=t(82729),o=t(85893),i=t(67294),a=t(9473),l=t(14349),c=t(41664),s=t.n(c),m=t(9008),d=t.n(m),p=t(19521),f=t(99428),h=t(35497),u=t(33599),g=t(6052),b=t(17518),x=t(47158),A=t(83624),w=t(62069),k=t(86961),y=t(5802),v=t(37009),E=t(609),j=t(73845),C=t(34105);function _templateObject(){let n=(0,r._)(["\n  padding-top: 3.85rem;\n\n  "," {\n    margin: auto 0rem;\n  }\n\n  "," {\n    margin: auto 9rem;\n  }\n"]);return _templateObject=function(){return n},n}let z=p.default.div.withConfig({componentId:"sc-4ed8ff2c-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md}),S={Link:s(),Hint:g.Z,PythonTypeWriter:x.Z,CustomTable:A.Z,ImageZoom:y.Z,Image:C.Z};var F=!0;e.default=function(n){let{source:e}=n.postData||{};(0,j.T)(),(0,a.v9)(E.Nq),(0,a.v9)(v.D8),(0,a.v9)(E.ot);let[t,r]=(0,i.useState)(!1);return(0,i.useEffect)(function(){setTimeout(function(){let n=window.location.hash;if(n){let e=n.replace("#",""),t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}},1e3)},[]),(0,o.jsxs)("div",{children:[(0,o.jsx)(d(),{children:(0,o.jsx)("title",{children:"Cod\xe9dex | Command Line: Cheat Sheet"})}),(0,o.jsx)(f.Z,{learningEnv:"general"}),(0,o.jsx)(w.Z,{children:(0,o.jsx)(z,{children:(0,o.jsx)(h.De,{children:(0,o.jsxs)(h.ZP,{children:[(0,o.jsx)(b.Z,{}),(0,o.jsx)(w.Z,{children:(0,o.jsx)(l.R,{...e,components:S})}),(0,o.jsx)(u.Z,{fire:t})]})})})}),(0,o.jsx)(k.Z,{style:{position:"sticky",top:"100%"}})]})}}},function(n){n.O(0,[1272,8700,1057,3777,4153,1622,9280,9428,6961,9774,2888,179],function(){return n(n.s=84909)}),_N_E=n.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.