Posts

Showing posts with the label fedora

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: 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...