[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-687676-105":59,"doc-detail-687676-en":130,"doc-similar-687676":149},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","linux-aliases-and-hidden-files-how-to-use-them","Linux Aliases and Hidden Files - How to Use Them","","Linux Aliases and Hidden Files explains how to create and use bash aliases as compact keyboard shortcuts for commands, including practical examples of listing files with ls and navigating directories with cd. It covers the role of Ubuntu-specific bash resource files like .bashrc and .bash_aliases, how hidden files starting with a period are revealed, and how to consult man pages for command options. It also warns about safely editing aliases and handling alias scope across terminals and temporary aliases.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/linux-aliases-and-hidden-files-how-to-use-them/687676/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/linux-aliases-and-hidden-files-how-to-use-them/687676.png","ImageObject",300,407,{"name":92,"@type":93},"miraaa_2004","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are bash aliases and why use them?","Question",{"text":112,"@type":113},"Bash aliases are keyboard-shortcut style compact commands. They typically shorten common commands like ls and cd, and they can also wrap programs into a single shortcut.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do hidden files get listed in Ubuntu?",{"text":117,"@type":113},"Hidden files are those starting with a period. Listing options for ls can be used to show them, and an example approach in the document explains how to display regular and hidden files together.",{"name":119,"@type":110,"acceptedAnswer":120},"How do you apply changes after editing .bash_aliases?",{"text":121,"@type":113},"After adding or editing aliases in .bash_aliases, re-source .bashrc so bash re-reads the alias definitions. If multiple terminals are open, other terminals must also re-source .bashrc to use the updates.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},687676,1794084498,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":24,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":8,"preview_urls":144},962094249165,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Linux Aliases and Hidden Files  \nThis document explains aliases – keyboard shortcuts – and how to use them. (Naturally, my alias list includes Seismic Unix (SU) aliases.) Along the way I explain hidden files.  \nCaution: This discussion is about the Ubuntu Linux distribution. A different flavor of Linux might not use the .bashrc and .bash_aliases files as they are discussed here.  \n1 . Starter aliases  \nAliases are keyboard shortcuts; that is, compact commands. Most aliases people make are shortcuts ofthe “ls”(list files) and “cd”(change directory) commands but an alias can also run a program. Aliases can be many things.  \nI installed Ubuntu 20.04. Let us pretend I have not defined any aliases. If I enter the “alias”command with nothing following it, I will see all my available aliases:  \nAlthough I did not define any aliases, I have eight aliases! The managers of Ubuntu put these in my .bashrc file. Above, the last four aliases are variations of the “ls” command; that is, they list my files in different ways. The first is a slightly more colorful version of the basic “ls”command. The second lists hidden files (described below) with other files. The third lists files, including hidden files, in “long” format – one row per entry with permissions, file size, and more. The fourth (bottom) adds color to any ls command.  \n2. Hidden files and “man” pages  \nBecause the name of my bash resource file (.bashrc) starts with a period, it is a “hidden” file. The usual command to “list” files in a directory is:  \nBut this does not show hidden files, files that begin with a period. Hidden files are usually some sort of system file, which system people think we should not see. A simple way to see regular files and hidden files is:  \nTo see the many options of the “ls” command, open the help manual (“man”) page for “ls”:$ man ls  \n“man” pages exist for many unix commands. Examples are cp (copy) and df (disk file report) . An example of df is later in this document.  \n3 . Example Ubuntu .bash_aliases file  \nI like creating/using aliases, but I think it is dangerous to edit my .bashrc file. If I make a mistake in that file, it could suddenly be a problem for me to use my account. I write from experience. Fortunately, there is an alternative to putting aliases in the bash resource file. The following lines are in my default .bashrc file:  \nThe lines above mean, when I log in or when I “source” my .bashrc file, the .bashrc file will read (if it exists) another hidden file, the .bash_aliases file.  \nWhen I write,“source” my .bashrc file, I mean that I enter the following command:$ source .bashrc  \nInteresting fact: a new Ubuntu installation does not have a .bash_aliases file. So, I created file.bash_aliases in my home directory. Below are the contents of my .bash_aliases file.  \nMost of the bottom “cd” aliases let me quickly move into directories that are source code (C code) for Seismic Unix. The exception is “sudemos,” my quick change to the very rich folders of SU demonstration scripts.  \nImportant: The command to create an alias has no spaces around the equals (“=”) sign.  \n4 . An alias to run a program  \nSuppose I have the text below in file zorro.sh in my “work” directory, a directory that is just under my home directory.  \nI realize saying “home” can be confusing. Know that when people say “my home directory,”they almost always do NOT mean  \n/home  \nThey almost always mean a top level personal directory, like /home/david  \nor  \n/home/sara  \nI could have the following alias to execute the [zorro.sh](zorro.sh) script: alias zo='~/[work/zorro.sh](work/zorro.sh)'  \nThis example, the zorro .sh script, is not interesting, but ifI create a script that I would run frequently, for example a diagnostic program, I might find it useful to create a shortcut.  \nAfter adding an alias (or after editing an alias) in the .bash_aliases file, I have to “source”my .bashrc file again to make the .bashrc file re-read the .bash_aliases file:  \n$ source .bashrc  \n$ s","cbCaihU7TQZHwk7c","https://ap.wps.com/l/cbCaihU7TQZHwk7c","pdf",530766,"English","# Linux Aliases and Hidden Files\n## Starter aliases\n## Hidden files and man pages\n## Example Ubuntu .bash_aliases file\n## An alias to run a program\n## Temporary alias\n## Naming an alias\n## Alias hierarchy","[{\"question\":\"What are bash aliases and why use them?\",\"answer\":\"Bash aliases are keyboard-shortcut style compact commands. They typically shorten common commands like ls and cd, and they can also wrap programs into a single shortcut.\"},{\"question\":\"How do hidden files get listed in Ubuntu?\",\"answer\":\"Hidden files are those starting with a period. Listing options for ls can be used to show them, and an example approach in the document explains how to display regular and hidden files together.\"},{\"question\":\"How do you apply changes after editing .bash_aliases?\",\"answer\":\"After adding or editing aliases in .bash_aliases, re-source .bashrc so bash re-reads the alias definitions. If multiple terminals are open, other terminals must also re-source .bashrc to use the updates.\"}]","Linux Aliases and Hidden Files - How to Use Them | PDF",13,[145],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9cdb692712e9adc33d88933d899bb6ac.webp",983,1272,{"list":150,"token":66},[151,157,163,169,175,181,187,194,200,206],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":52,"category_name":30,"create_tm":156},671803,"Linux Tutorial - Version 1.21 - Learn Linux command basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988776479/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=C7UK6oVrDWbnly0drW3OOUWc8p0%3D","linux-tutorial-version-121-learn-linux-command-basics",1793580864,{"doc_id":158,"doc_title":159,"file_type":137,"home_preview_img_url":160,"slug":161,"view_count":39,"category_name":30,"create_tm":162},646203,"Beginning Ubuntu Linux - From Novice to Professional - Fourth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971799075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=pjOqsT4uJzms1rTsMDWpbD8MbWY%3D","beginning-ubuntu-linux-from-novice-to-professional-fourth-edition",1792753396,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":19,"category_name":30,"create_tm":168},687609,"Lecture 11 - Bash Shell, Command Line","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262831/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=sHFyfglCrvQWl6aMDaTyFB73oIg%3D","lecture-11-bash-shell-command-line",1794084276,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":52,"category_name":30,"create_tm":174},646211,"Beginning Ubuntu Linux - From Novice To Professional","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971799617/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=jPaeeMBUkzP8ut51BsfUObvMHcs%3D","beginning-ubuntu-linux-from-novice-to-professional",1792753429,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":81,"category_name":30,"create_tm":180},687680,"Campus Network Design and Security Workshop - A few Linux basics - Ubuntu Linux 14.04 LTS 32-bit","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000649992/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=NicfTTtMVQZR3KTwISKq0%2FJyYHk%3D","campus-network-design-and-security-workshop-a-few-linux-basics-ubuntu-linux-1404-lts-32-bit",1794084504,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":44,"category_name":30,"create_tm":186},646210,"Ubuntu® Linux® Bible - Third Edition - Set up Ubuntu for desktops or servers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971485001/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=TlSjxWX00FRksKB%2FK2TwRE0NJyA%3D","ubuntu-linux-bible-third-edition-set-up-ubuntu-for-desktops-or-servers",1792753416,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":30,"create_tm":193},22608,"The Ubuntu Issue: Expert Tips for Coding","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229715746384/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=m0Ca%2FsvajInnRRWqdY39EG9jElw%3D","the-ubuntu-issue-expert-tips-for-coding",62,1777611058,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":81,"category_name":30,"create_tm":199},699569,"Take Control of the Mac Command Line with Terminal - 3rd Edition - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011312561/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=qToaKVETeB8Rfj%2FMGSYzahvB2QY%3D","take-control-of-the-mac-command-line-with-terminal-3rd-edition-table-of-contents",1794479400,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":19,"category_name":30,"create_tm":205},687562,"BASIC LINUX TERMINAL COMMANDS - Quick Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=fLqb1SW87G%2FGlDfypT%2F4XbJofNk%3D","basic-linux-terminal-commands-quick-introduction",1794084146,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":52,"category_name":30,"create_tm":211},292275,"Powertech Antivirus 5.4.2 User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903863481/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=qJe%2FKV0wFfVkNOK582R%2BnqPEXM0%3D","powertech-antivirus-542-user-guide",1789649682]