{"id":260,"date":"2009-06-30T18:35:03","date_gmt":"2009-06-30T18:35:03","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2009\/06\/30\/linux-how-to-use-the-alias-command\/"},"modified":"2021-07-24T19:03:48","modified_gmt":"2021-07-24T19:03:48","slug":"linux-how-to-use-the-alias-command","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Linux\/linux-how-to-use-the-alias-command.html","title":{"rendered":"Linux – how to use the alias command"},"content":{"rendered":"
The alias<\/strong> command allows you to create command shortcuts within your shell. Below shows you how,<\/p>\n move to your home directory,<\/p>\n [root@localhost ~]# cd ~<\/p>\n add the alias of os which will show the output of ‘uname -a’<\/p>\n [root@localhost ~]# cat >> .bash_profile Reload you environment variables for your new alias to take effect<\/p>\n [root@localhost ~]# . .bash_profile<\/p>\n Test your new alias <\/span><\/p>\n [root@localhost ~]# os The alias command allows you to create command shortcuts within your shell. Below shows you how, move to your home directory, [root@localhost ~]# cd ~ add the alias of os which will show the output of ‘uname -a’ [root@localhost ~]# cat >> .bash_profile [root@localhost ~]# alias os=’uname -a’ Reload you environment variables for your new … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\n
[root@localhost ~]# alias os=’uname -a’<\/p>\n
<\/span>Linux localhost.localdomain 2.6.18-92.1.6.el5PAE #1 SMP Fri Jun 20 02:51:01 EDT 2008 i686 i686 i386 GNU\/Linux<\/span>
<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"