Posts

Showing posts with the label linux

GENERAL:Fun with Linux

So here's a common tutorial on how to SHUTDOWN any PC connected to you on your LAN network using LINUX based OS... first you need to get the IP address of those machines ,, inorder to do so you can try ipneigh or arp on your terminal.... if that doesn't work you should can always try install nmap an applet application for broadcasting to all the IP's on a network , this will get you a list of IP's so inorder to install nmap here's how its done yum install nmap / apt-get nmap nmap <IP> b suppose <IP> = 192.168.1.1 you should replace the digits with * (the more the * the more is the SCAN TIME) E.G.:- 192.168.*.* will get me a list of all the IP's starting from 192.168.   now try these again- ip neigh or arp on your terminal.... after this you can use various commands like init1,init2 .... , poweroff , reboot ..... along with ssh .   command ssh <IP> poweroff this is supposed to shutdown the other PC , you can also use ss...

Time to have some fun.........

Image
Tired of programming on FEDORA 20 'o' some other linux platform? try these commands (might differ from os to os & you need to login as su or try sudo)  su; yum install abe yum install xcowsay yum install nsnake yum install nethack yum install ularn yum install crossfire yum install raidem yum install neverputt similarly the command remains the same but you can type in other games 0 A.D. - A free, open-source game of ancient warfare  Battle for Wesnoth - Turn-based Tactics and Strategy Game with a Fantasy Theme! warzone2100 - 3D single and multiplayer realtime strategy... formerly commercial  freeciv - World conquest  freecol - Colonization-like strategy game  megaglest - 3D real time strategy game  gnugo - Text-based Go program  grhino - Reversi game for GNOME  quarry - Multi-purpose board game GUI  qascade - Classic puzzle game  netpanzer - An Online Multiplayer Tactical...

OSA: Directory- create,delete,display PWD and change directory

while(true) do echo " MENU ------------------------------------------------------------------------------ 1)Make a new directory 2)Delete a directory 3)Display current working directory 4)Change directory" read choice case $choice in 1) echo " New directory ============================================================================== Enter name of directory to be created ->" read name if [ -d $name ]; then echo "directory already exists, please try another name" else mkdir $name echo "directory has been created successfully" fi ;; 2) ls echo " Delete directory ============================================================================== Enter the name of directory to be deleted ->" read dname if [ -d $dname ]; then rmdir $dname echo "directory has been deleted  " else echo "invalid name, please try a valid directory name" fi ;; 3) ech...

OSA: User- add,delete,change access permissions for a file

while(true) do echo " MENU ------------------------------------------------------------------------------ 1)Super User 2)Add user 3)Delete user 4)Change access permissions 5)Exit" read choice case $choice in 1) echo "act as super user inorder to add user ==============================================================================" su sh 3.sh s ;; 2) echo " add user ============================================================================== Enter the User name -> " read name useradd $name echo "User added successfully" ;; 3) echo " Delete user ============================================================================== Enter the name of user to be deleted -> " read username userdel userdel $username echo "the user has been deleted" ;; 4) echo " change access permissions ==============================================================...

OSA: File management (Create,rename,delete and list the file's in present working directory)

while(true) do echo  " Enter operation you want to perform ------------------------------------------------------------------------------ 1)Create a File 2)Rename a File 3)Delete a File 4)List File's " echo "enter your choice->" read choice case $choice in 1) echo "Enter the name of file to be created" read filename if [ -f $filename ]; then echo "file already exists,please try another name" else touch $filename echo "file has been created successfully" fi # ;; 2) echo "Enter the name of File to be renamed " read oldfilename if [ -f $oldfilename ]; then echo "enter the new file name to be assigned " read newfilename mv $oldfilename $newfilename else echo "file doesn't exist please try an existing filename" ls fi # ;; 3) echo "Enter name of File to be deleted " read name if [ -f $name ]; then rm -f $name echo "file ha...

OSA: MOUNT & UNMOUNT

while(true) do echo    "  MENU ------------------------------------------------------------------------------         1)Display mounted devices 2)Mount a device 3)Unmount a device 4)See physical name and instance number 5)Exit" read choice case $choice in 1) echo "Mounted devices are -> " mount ;; 2) echo " MOUNT ------------------------------------------------------------------------------- Enter the name of device -> " read name    echo "Enter the mount point -> " read point mount $name $point echo "the device has been mounted successfully" ;; 3) echo " Unmount ------------------------------------------------------------------------------- enter source of device ->" read devsource umount -f  $devsource echo "the device has been unmounted successfully" ;; 4) echo " Physical name and instance number --------------------------------------...

OSA: System info shell program

while(true) do echo "CPU INFORMATION       1.CPU CORES AND THREADS       2.CPU MANUFACTURER       3.PROCESSOR FAMILY       4.PROCESSOR VERSION       5.PROCESSOR FREQUENCY       6.SYSTEM MANUFACTURER       7.BIOS VERSION       8.RAM INFO        9.EXIT" read a; case $a in 1)echo "CPU INFORMATION.." dmidecode -t processor ;; 2)echo "CPU MANUFACTURER.." dmidecode -s processor-manufacturer    ;; 3)echo "PROCESSOR FAMILY.." dmidecode -s processor-family ;; 4)echo "PROCESSOR VERSION.." dmidecode -s processor-version    ;; 5)echo "PROCESSOR FREQUENCY.." dmidecode -s  processor-frequency    ;; 6)echo "SYSTEM MANUFACTURER.." dmidecode -s  system-manufacturer ;; 7)echo "BIOS VERSION.."...

OSA: linux commands(terminal)

An A-Z Index of the Bash command line for Linux. alias Create an alias • apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find and Replace text, database sort/validate/index b basename Strip directory and suffix from filenames bash GNU Bourne-Again SHell bc Arbitrary precision calculator language bg Send to background break Exit from a loop • builtin Run a shell builtin bzip2 Compress or decompress named file(s) c cal Display a calendar case Conditionally perform a command cat Concatenate and print (display) the content of files cd Change Directory cfdisk Partition table manipulator for Linux chgrp Change group ownership chmod Change access permissions chown Change file owner and group chroot Run a comm...