Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to get name of pc bash script

computer_name=$(whoami)

if [ $computer_name == "NAME" ]
then
    echo "a is equal to b in NAME pc"
    echo $computer_name
else
    echo "a is not equal to b another pc"
    echo $computer_name
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: update git using bash 
Shell :: adb install aab 
Shell :: append string to end of file name bash 
Shell :: linux unpack gz 
Shell :: unity install c# package 
Shell :: how to change git default branch name 
Shell :: linux get list interfaces with ip address 
Shell :: Instal helm ubuntu linux 
Shell :: wsl linux compress siez 
Shell :: tkPDFViewer install 
Shell :: how to install wine-7.1.tar.xz on kali linux 
Shell :: how to convert vdi to gnome boxes 
Shell :: instalar acrobat reader desde wine en fedora 
Shell :: loop clear and ls lrt command line linux 
Shell :: multiple multple copies in cmd 
Php :: how to remove public from url in codeigniter 4 
Php :: php reverse shell oneliner 
Php :: wpdb last query 
Php :: php change date format 
Php :: php sigmoid function 
Php :: php header location 
Php :: laravel password confirmation 
Php :: wordpress get excerpt 
Php :: php artisan storage link 
Php :: get all routes laravel 
Php :: php function to remove underscore 
Php :: ERROR 1071 (42000) at line 76: Specified key was too long; max key length is 767 bytes laravel 
Php :: PHP Warning: require(/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/api-fase/bootstrap/autoload.php on line 17 
Php :: laravel request all except 
Php :: acf link 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =