[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-573833-105":3,"detail-sidebar-cat-1-en-105":80,"doc-detail-573833-en":126},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","unix-basic-cheat-sheet-terminal-ssh-server-management","Unix-Basic Cheat Sheet - Terminal - SSH Server Management","","Unix-Basic Cheat Sheet for terminal usage and server access, covering core SSH commands and common workflow tasks on Linux systems. Includes commands for identifying the user, viewing date/time, consulting the manual, navigating directories, listing files with useful flags, and using wildcards for pattern matching. Also provides practical reference for file and directory operations such as mkdir, cp/cp -r, scp for transferring files, rm/mv for deletion and movement, plus cat/more/head/tail for file viewing. Summarizes quick terminal guidance for Vim and common archive/compression tools (tar, gzip, unzip), along with Sbatch batch-job structure and scheduling options.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/general/","General",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/unix-basic-cheat-sheet-terminal-ssh-server-management/573833/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/unix-basic-cheat-sheet-terminal-ssh-server-management/573833.png","ImageObject",442,249,{"name":42,"@type":43},"Grenda","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-15","2026-10-14",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"How do I connect to the BYU SSH server with ssh?","Question",{"text":62,"@type":63},"Use ssh user@ssh.fsl.byu.edu. After running it, the command prompts for your password.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Which command shows which user you are logged in as?",{"text":67,"@type":63},"whoami displays the username you are currently logged in as.",{"name":69,"@type":60,"acceptedAnswer":70},"How do I view a text file in the terminal using this cheat sheet?",{"text":71,"@type":63},"Use cat to display contents, more to page through screen by screen, head to show the first 10 lines, and tail to show the last 10 lines.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},573833,1792086193,{"code":4,"msg":81,"data":82},"success",[83,88,93,98,103,108,113,118,123],{"id":84,"doc_module":22,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},11,"Presentations",90,"presentations",{"id":89,"doc_module":22,"doc_module_name":25,"category_name":90,"show_sort_weight":91,"slug":92},12,"Resumes",80,"resumes",{"id":94,"doc_module":22,"doc_module_name":25,"category_name":95,"show_sort_weight":96,"slug":97},14,"Invoices",70,"invoices",{"id":99,"doc_module":22,"doc_module_name":25,"category_name":100,"show_sort_weight":101,"slug":102},15,"Posters",60,"posters",{"id":104,"doc_module":22,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},16,"Social Media",50,"social-media",{"id":109,"doc_module":22,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},17,"Forms",40,"forms",{"id":114,"doc_module":22,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},18,"Letters",30,"letters",{"id":119,"doc_module":22,"doc_module_name":25,"category_name":120,"show_sort_weight":121,"slug":122},21,"Paper Templates",5,"papers-templates",{"id":124,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":4,"slug":125},158,"general-158",{"code":4,"msg":81,"data":127},{"doc_id":78,"user_id":128,"nickname":42,"user_avatar":129,"doc_module":22,"category_id":124,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":121,"language":135,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":12,"update_tm":139,"read_time":26},7971474921005,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Unix-Basic Cheat Sheet (Terminal)  \nServer Management-SSH  \n\n| Command | Description |\n| --- | --- |\n| ssh user@ssh.fsl.byu.edu | connect to fsl host as user (It ask you for your password) |\n| whoami | who you are logged in as |\n| date | shows the current date and time |\n| man command | show the manual for command function (e.g. , man ls) . To quit man type: q |\n| pwd | prints working directory (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 -­‐l -­‐tr | lists contents of current directory with extra details by recently modified at the end of list |\n| ls *.txt | lists all files in ending in .txt |\n| cd | change directory to your home directory |\n| cd ~ | change directory to your home directory |\n| cd mydir | change directory to mydir subdirectory |\n| cd .. | changes to directory above current one |\n| cd -­‐ | change directory to the last directory you were in before changing to wherever you are now |\n\nWildcard characters  \n\n| * | matches any character. example: ls * . pl lists any file ending with“.pl” ; rm dataset* will remove all files beginning with“dataset” |\n| --- | --- |\n| [xyz] | matches any character in the brackets (x, y, or z) . example: cat do[or]m.txt will display the contents of either doom.txt or dorm.txt |\n\nCopying files and directories  \n\n| mkdir mynewdir | makes a directory called mynewdir |\n| --- | --- |\n| cp myfile mynewfile | copies myfile to mynewfile (Note: if mynewfile already exists, this will overwrite it) |\n| cp-r dir newdir | copies the whole directory dir to newdir.–r must be specified to copy directory contents recursively |\n| scp myfile [username@ssh.fsl.byu.edu:/fslhome/username/](username@ssh.fsl.byu.edu:/fslhome/username/) | copies files from your computer to the byu clusters (it ask you for your password) . Note: path is the location in your computer that you want that folder, use pwd for that purpose. |\n| scp [username@ssh.fsl.byu.edu:/fslhome/username/myfile](username@ssh.fsl.byu.edu:/fslhome/username/myfile) | copies files from the byu clusters user home directory to your computer in the current directory |\n| scp-r mydir [username@ssh.fsl.byu.edu:/fslhome/username/](username@ssh.fsl.byu.edu:/fslhome/username/) | copies files from your computer to the byu clusters user home directory (it ask you for your password) . Note: path is the location in your computer that you want that folder, use pwd for that purpose. |\n| scp-r [username@ssh.fsl.byu.edu:/fslhome/username/mydir](username@ssh.fsl.byu.edu:/fslhome/username/mydir) path/mydir | copies files from the byu clusters to your computer |\n\nDeleting and moving files and directories  \n\n| rm myfile | removes file called myfile |\n| --- | --- |\n| rm-f myfile | removes myfile without asking you for confirmation. Useful if using wildcards to remove files *** |\n| rm-rf mydir | this will delete directory mydir along with all its content without asking you for confirmation! *** |\n| mv myfile newlocdir | moves myfile into the destination directory newlocdir |\n| mv myfile newname | renames file to newname. if a 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\nUnix-Basic Cheat Sheet (Terminal)  \nFile Contents  \n\n| Command | Description |\n| --- | --- |\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 page down, 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\nVIM Text editor  \n\n| vim filename | opens filename in terminal |\n| --- | --- |\n| SHIFT + zz | quits vim |\n\nCompression and expansion of files  \n\n| tar cf file .tar file1 file2 | Create a tar named \"file.tar\" containing file1 and file 2 |\n| --- | --- |\n| tar cf file .tar * ","cbCaicitcbOpkPba","https://ap.wps.com/l/cbCaicitcbOpkPba","pdf",144164,"English","# Unix Basics (Terminal)\n## Server Management - SSH\n## Wildcard Characters\n## Copying Files and Directories\n## Deleting and Moving Files and Directories\n## File Contents Viewing\n## VIM Text Editor\n## Compression and Expansion of Files\n## Sbatch Jobs","[{\"question\":\"How do I connect to the BYU SSH server with ssh?\",\"answer\":\"Use ssh user@ssh.fsl.byu.edu. After running it, the command prompts for your password.\"},{\"question\":\"Which command shows which user you are logged in as?\",\"answer\":\"whoami displays the username you are currently logged in as.\"},{\"question\":\"How do I view a text file in the terminal using this cheat sheet?\",\"answer\":\"Use cat to display contents, more to page through screen by screen, head to show the first 10 lines, and tail to show the last 10 lines.\"}]","Unix-Basic Cheat Sheet - Terminal - SSH Server Management | PDF",1791948111]