HankyoPresents
open-menu closeme
Home
Categories
Links icon
Github Youtube
About
🌐
English
github email youtube rss
  • Array - Get last element of an array in linux shell

    calendar Apr 26, 2025 · 1 min read · about array article element how last learn linux shell terminal  ·
    Share on: twitter facebook linkedin copy
    Array - Get last element of an array in linux shell

    Array - Get last element of an array in linux shell In this article we learn about how to get last element of an array in linux shell in linux terminal. We can use negative index: 1 arr=( usdt btc eos ) 2 echo "${arr[-1]}" 1 arr=( usdt btc eos ) 2 echo "${arr[-2]}" Helpful links: …


    Read More
  • Array - Add new elements to an array using linux terminal

    calendar Apr 25, 2025 · 1 min read · add array article bash create elements how index learn linux push terminal without  ·
    Share on: twitter facebook linkedin copy
    Array - Add new elements to an array using linux terminal

    Array - Add new elements to an array using linux terminal In this article we can learn how to add/create new elements in an array push elements to a array without elements index in linux terminal bash. Push elements to a array without elements index On linux shells arr[0]="new" and arr[1]="newest" methods are not …


    Read More
  • Array - Create an simple array in linux terminal

    calendar Apr 25, 2025 · 1 min read · array article commandline create declare define how learn linux terminal  ·
    Share on: twitter facebook linkedin copy
    Array - Create an simple array in linux terminal

    Array - Create an simple array in linux terminal In this article we can learn how to declare/define/create an array in linux commandline terminal. method1) using direct index values: usage: 1 array[value]="element" examples: 1 arrayNames[0]="btc" 2 arrayNames[1]="usdt" 3 arrayNames[2]="eth" 4 echo "${arrayNames[@]}" …


    Read More
  • Array - Display all elements in a array in linux

    calendar Apr 25, 2025 · 1 min read · array article display element how learn linux loop terminal  ·
    Share on: twitter facebook linkedin copy
    Array - Display all elements in a array in linux

    Array - Display all elements in a array in linux In this article we can learn how to display each element in a array using for loop in linux terminal 1 arrayNames=( btc usdt eos eth ) 2 for names in "${arrayNames[@]}" 3 do 4 echo "$names" 5 done Display all the elements in an array: 1 arrayNames=( btc usdt eos eth ) 2 …


    Read More
  • Array - Display elements in a range in linux shell

    calendar Apr 25, 2025 · 1 min read · article display elements how learn linux range shell terminal  ·
    Share on: twitter facebook linkedin copy
    Array - Display elements in a range in linux shell

    Array - Display elements in a range in linux shell In this article we can learn how to display elements in a specific range in linux terminal shell. Index 2 to 4: 1 arrayNames=( btc eos eth usdt ltc) 2 echo ${arrayNames[@]:2:4} Index 1 to 3: 1 arrayNames=( btc eos eth usdt ltc) 2 echo ${arrayNames[@]:1:3} Helpful …


    Read More
  • Array - Display length of the specific element in linux shell

    calendar Apr 25, 2025 · 1 min read · array article bash character count display element how learn linux shell  ·
    Share on: twitter facebook linkedin copy
    Array - Display length of the specific element in linux shell

    Array - Display length of the specific element in linux shell In this article we can learn how to display character count in a array element in linux bash shell and Display character count in a array element. Character count in 1st element: 1 arrayNames=( btc eos eth usdt ltc) 2 echo ${#arrayNames[1]} Character count …


    Read More
  • apt command - how to remove a ppa from repository

    calendar Apr 24, 2025 · 1 min read · apt-secure article broken installed ppa remove repos repository errorFix  ·
    Share on: twitter facebook linkedin copy
    apt command - how to remove a ppa from repository

    apt command - how to remove a ppa from repository In this article we are going to know about how to remove broken ppa repos, Slove the "apt-secure(8) error", and how to remove a added installed ppa repository View all installed ppa repositories: 1 sudo ls /etc/apt/sources.list.d method1) Using add-apt-repository 1 …


    Read More
  • Array - Access each elements in a array using for loop

    calendar Apr 24, 2025 · 1 min read · array article elements how learn loop through traverse  ·
    Share on: twitter facebook linkedin copy
    Array - Access each elements in a array using for loop

    Array - Access each elements in a array using for loop in linux In this article we can learn how to traverse through the array elements we can use for loop in linux 1 arrayNames=( way test auth new ) 2 for names in "${arrayNames[@]}" 3 do 4 echo "array elements : $names" 5 done Helpful Links: …


    Read More
  • Addition Substract Multiply Divide - Calculate the sum of integers or string and decimals using linux terminal

    calendar Apr 23, 2025 · 2 min read · Addition calculations decimals Divide integers linux math Multiply string Substract sum terminal  ·
    Share on: twitter facebook linkedin copy
    Addition Substract Multiply Divide - Calculate the sum of integers or string and decimals using linux terminal

    Addition Substract Multiply Divide - Calculate the sum of integers or string and decimals using linux terminal Do various math calculations like Addition,Substract,Multiply,Divide to get sum of integers or string and decimals using linux terminal First two methods can only calculate integers so won't work with …


    Read More
  • sudo - What to do when displaying the command has to be run under the root user error

    calendar Apr 23, 2025 · 1 min read · command error sudo root run  ·
    Share on: twitter facebook linkedin copy
    sudo - What to do when displaying the command has to be run under the root user error

    sudo - What to do when displaying the command has to be run under the root user error What to do when displaying the 'This command has to be run under the root user' error THE ERROR: 1[fixer@linuxlk ~]$ dnf update 2Error: This command has to be run under the root user. THE SOLUTION: add two exclamation points(!) after …


    Read More

Hankyo photo

Hankyo

Android Development Student, Psychology Student and Create things that make life easier!..
Read More

Featured Posts

  • Array - Get last element of an array in linux shell
  • Array - Get Number of elements in a array in linux terminal
  • Array - Add new elements to an array using linux terminal
  • Array - Create an simple array in linux terminal
  • Array - Display all elements in a array in linux
  • Array - Display elements in a range in linux shell
  • Array - Display length of the specific element in linux shell
  • appimage - install and run appImage in linux and fedora

Recent Posts

  • apt command - how to remove a ppa from repository
  • Array - Access each elements in a array using for loop
  • ADB - Add usb debugging option to quick tiles pane on android device
  • ADB - Connect to android device remotely using adb with wifi on linux
  • ADB - Send or receive files and folders using adb push command using linux/windows
  • Addition Substract Multiply Divide - Calculate the sum of integers or string and decimals using linux terminal
  • GITHUB - Add images to github readme.md file
  • sudo - What to do when displaying the command has to be run under the root user error

Categories

LINUX 13 COMMANDS 10 TERMINAL 10 COMPUTER 4 ANDROID 3 APPS 1 SOFTWARE 1 SOFTWARES 1 WEBSITE 1 WINDOWS 1

Series

ARTICLES BY HANKYO 16

Tags

LINUX 10 ARTICLE 9 LEARN 8 ARRAY 7 HOW 7 TERMINAL 7 DISPLAY 4 ELEMENTS 4 SHELL 4 ADB 3 ANDROID 3 DEVICE 3 ELEMENT 3 BASH 2
All Tags
ABOUT1 ADB3 ADD1 ADDITION1 ANDROID3 APPIMAGE1 APPLICATIONS1 APT-SECURE1 ARRAY7 ARTICLE9 BASH2 BROKEN1 CALCULATIONS1 CHARACTER1 COMMAND1 COMMANDLINE1 COMPUTER2 CONNECT2 COUNT2 CREATE2 DEBUGGING1 DECIMALS1 DECLARE1 DEFINE1 DEVICE3 DIRECTORIES1 DISABLE1 DISPLAY4 DIVIDE1 ELEMENT3 ELEMENTS4 ENABLE1 ERROR1 ERRORFIX1 FEDORA1 FILE1 FILES1 GITHUB1 HOW7 IMAGES1 INDEX2 INSTALL1 INSTALLED1 INTEGERS1 LAST1 LEARN8 LINUX10 LOOP2 MATH1 MULTIPLY1 PANE1 PHOTOS1 PPA1 PUSH1 QUICK1 RANGE1 README1 README.MD1 REMOTELY1 REMOVE1 REPOS1 REPOSITORY1 ROOT1 RUN2 SHELL4 SHORTCUT1 SOFTWARE1 STRING1 SUBSTRACT1 SUDO1 SUM1 TERMINAL7 THROUGH1 TILES1 TRANSFER1 TRAVERSE1 USB1 USING1 WIFI1 WINDOWS1 WITHOUT1
[A~Z][0~9]
Presented by Hankyo!..

Copyright  PRESENTED BY HANKYO!... All Rights Reserved

to-top