[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571635-105":53,"doc-detail-571635-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","itec202-operating-systems-lab-linuxunix-command-line-cheat-sheet","ITEC202 Operating Systems Lab-Linux/Unix Command Line Cheat Sheet","","A practical Linux/Unix command-line cheat sheet for lab-style use, covering core workflows: locating the current directory (pwd), listing and filtering files (ls with details and wildcards), and navigating the filesystem (cd with common path forms). It also summarizes essential file and directory operations (mkdir, rmdir, touch, cp, rm, mv), text viewing/editing tools (nano, cat, more, head, tail, tail -f), process and resource inspection (top), and frequent utilities like ssh, grep, tar, time, man, and redirection/piping.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/itec202-operating-systems-lab-linuxunix-command-line-cheat-sheet/571635/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/itec202-operating-systems-lab-linuxunix-command-line-cheat-sheet/571635.png","ImageObject",442,249,{"name":88,"@type":89},"moss~","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-22","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",8,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do you view the current directory and list its contents in Linux/Unix?","Question",{"text":109,"@type":110},"Use pwd to print the working directory, then use ls to list current directory contents. For detailed output, use ls -l.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How can you create, copy, move, and delete files safely?",{"text":114,"@type":110},"Create files with touch, copy with cp (use -r for recursive directory copies), and rename/move with mv. Delete with rm, and note that rm -f and rm -rf skip confirmation—use them with extreme caution.",{"name":116,"@type":107,"acceptedAnswer":117},"How do you redirect and combine command outputs on the terminal?",{"text":118,"@type":110},"Use > to overwrite and >> to append output to a file. Use pipes (command1 | command2) to feed the output of one command into another, and use man anycommand for command help.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571635,1792015744,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":9,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":4},962090895452,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","ITEC202 Operating Systems Lab-Linux/Unix Command Line Cheat Sheet  \n\n| Command | Description |  |\n| --- | --- | --- |\n| pwd | prints working directory (prints to screen, ie displays the full path, or your location on the filesystem) |  |\n| ls | lists contents of current directory |  |\n| ls –l | lists contents of current directory with extra details |  |\n| ls /home/user/*. txt | lists all files in /home/user ending in .txt |  |\n| cd | change directory to your home directory |  |\n| cd ~ | change directory to your home directory |  |\n| cd /scratch/user | change directory to user on scratch |  |\n| cd - | change directory to the last directory you were in before changing to wherever you are now |  |\n| mkdir mydir | makes a directory called mydir |  |\n| rmdir mydir | removes directory called mydir. mydir must be empty |  |\n| touch myfile | creates a file called myfile. updates the timestamp on the file if it already exists, without modifying its contents |  |\n| cp myfile myfile2 | copies myfile to myfile2 . if myfile2 exists, this will overwrite it! |  |\n| rm myfile | removes file called myfile |  |\n| rm –f myfile | removes myfile without asking you for confirmation. useful if using wildcards to remove files *** |  |\n| cp –r dir newdir | copies the whole directory dir to newdir. –r must be specified to copy directory contents recursively |  |\n| rm –rf mydir | this will delete directory mydir along with all its content without asking you for confirmation! *** |  |\n| nano | opens a text editor. see ribbon at bottom for help. ^x means CTRL-x. this will exit nano |  |\n| nano new. txt | opens nano editing a file called new.txt |  |\n| cat new. txt | displays the contents of new.txt |  |\n| more new. txt | displays the contents of new.txt screen by screen. spacebar to pagedown, q to quit |  |\n| head new. txt | displays first 10 lines of new.txt |  |\n| tail new. txt | displays last 10 lines of new.txt |  |\n| tail –f new. txt | displays the contents of a file as it grows, starting with the last 10 lines. ctrl-c to quit. |  |\n| mv myfile newlocdir | moves myfile into the destination directory newlocdir |  |\n| mv myfile newname | renames file to newname. ifa file called newname exists, this will overwrite it! |  |\n| mv dir subdir | moves the directory called dir to the directory called subdir |  |\n| mv dir newdirname | renames directory dir to newdirname |  |\n| top | displays all the processes running on the machine, and shows available resources |  |\n| du –h--max-depth=1 | run this in your home directory to see how much space you are using. don’t exceed 5GB |  |\n| ssh servername | goes to a different server. this could be queso, brie, or provolone |  |\n| grep pattern files | searches for the pattern in files, and displays lines in those files matching the pattern |  |\n| date | shows the current date and time |  |\n| anycommand > myfile | redirects the output of anycommand writing it to a file called myfile |  |\n| date > timestamp | redirects the output of the date command to a file in the current directory called timestamp |  |\n| anycommand >> myfile | appends the output of anycommand to a file called myfile |  |\n| date >> timestamp | appends the current time and date to a file called timestamp. creates the file if it doesn’t exist |  |\n| command1 | command2 | “pipes” the output of command1 to command2 . the pipe is usually shift-backslash key |  |\n| date | grep Tue | displays any line in the output of the date command that matches the pattern Tue. (is it Tuesday?) |  |\n| tar -zxf archive. tgz | this will extract the contents ofthe archive called archive.tgz. kind of like unzipping a zipfile. *** |  |\n| tar -zcf dir. tgz dir | this creates a compressed archive called dir.tgz that contains all the files and directory structure of dir |  |\n| time anycommand | runs anycommand, timing how long it takes, and displays that time to the screen after completing anycommand |  |\n| man anycommand | gives you help on anycommand |  |\n| cal -y | free calendar","cbCaif6zQ2UmQh3L","https://ap.wps.com/l/cbCaif6zQ2UmQh3L","pdf",181660,"English","# Command Basics\n## Working Directory and Listing\n## Navigation and Paths\n# Files and Directories\n## Create, Copy, Move, Remove\n## Editing and Viewing Text\n# Processes, Search, and Archives\n## Monitoring and Help\n## SSH, grep, tar, and Utilities\n# Output Control\n## Redirection and Pipes\n## Wildcards and Safety Notes","[{\"question\":\"How do you view the current directory and list its contents in Linux/Unix?\",\"answer\":\"Use pwd to print the working directory, then use ls to list current directory contents. For detailed output, use ls -l.\"},{\"question\":\"How can you create, copy, move, and delete files safely?\",\"answer\":\"Create files with touch, copy with cp (use -r for recursive directory copies), and rename/move with mv. Delete with rm, and note that rm -f and rm -rf skip confirmation—use them with extreme caution.\"},{\"question\":\"How do you redirect and combine command outputs on the terminal?\",\"answer\":\"Use \\u003e to overwrite and \\u003e\\u003e to append output to a file. Use pipes (command1 | command2) to feed the output of one command into another, and use man anycommand for command help.\"}]","ITEC202 Operating Systems Lab-Linux/Unix Command Line Cheat Sheet | PDF",1791922844]