Skip to content

Tag: alias

Is it possible to get command arguments now executing?

I want to declare aliases which append argument if no argument specified. For example, I expected executing vimtutor with no argument is replaced to vimtutor ja.utf-8, but it doesn’t work properly. So, I tried some tests on bash shell. And I understood it is impossible to get command arguments now executing i…

Bash alias cpu usage

I’ve tried this command but I have a percentage error calculator: Thank you for help Answer Change it to this: was missing after 100 -.

Creating Linux Alias to list only Directories

I’m wanting to create an alias called dir for KSH that will show only the sub-directories in a cluttered directory with many files and directories. I can output a single-column list of the directories, but I am having a problem converting the single-column list into a multi-column. I want it to automati…

Bash script to execute commands on system boot up

I am trying to make a bash script to check for two data values and weather or not they are set to 1 or 0 I want to do something. These values usually are set on system bootup and are defined usually after system is completely up (that is why I am using a while loop to keep checking until