Ramboraj Posted November 20, 2013 Report Posted November 20, 2013 bhayya naaaku telesi its s/w kanivuu db ee kanivuu its all depend on .......................ryt tym ryt oppurtunity and ryt choice meedha unaatdhi baa neeku subj entha vachu annedhani danikante...............do ur efforts sumday it will get u success... pm chesna ...kanisam prasamsha ledu
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 Commands for Unix also useful for other platforms 1}To find the the process that uses most CPU ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10 it will show the first ten process that consuming CPU 2}Find CPU usage with the process listing in runtime and much more statistics in terms of memory, virtual memory, etc. >TOP 3}Disk Usage on all mounts df -h -T a}prints just one line with the total size of the directory, the below example show the size of the /usr/IBM/Websphere WebSphere. du -ch | grep total b}DU: It displays the disk usage for all directories and subdirectories under the current directory. Syntax: du DF: It displays the disk space free on each file system. It is very useful. Syntax: df -m results in megabytes df -k results in kilobytes df –h results in gigabytes 4}Network related commands a) dig <ip address or hostname> is a flexible tool for interrogating DNS name servers. b) nslookup <ip adress or hostname> - Queries a name server for a host or domain lookup. 5} List all network interfaces, the below example list two interfaces eth0 and eth1 and a loopback. ifconfig -a 6} Find a memory usage of the system. free cat /proc/meminfo 7}. If you run CPU-bond processes you must use nice command used to start process with modified scheduling priority / nicenesses. renice command is used to change the priority of a process that's already running. % renice Usage: renice [<priority> | -n <incr>] [[-p] <pids>...] [-g <pgrp>...] [-u <user>...] Let's say we want to change the nice level of process 5924 (qemu) from the default of 0 to 10: % renice 10 -p 5924 5924: old priority 0, new priority 10 8}To kill the process kill -9 pid 9}Kill -3: It is used to take thread dumps on Linux platforms. Syntax: kill -3 pid 10}Tail: The tail command displays the last few lines of a file. By default, tail will show the last 10 lines of a file. Syntax: tail filename Syntax: tail –n filename Where n is number of lines Head: The Head command displays the first few lines of a file. By default, Head will show the first 10 lines of a file. Syntax: Head filename Syntax: Head –N filename Where N is number of lines a}VI Editor: Vi editor is modifying, coping, deleting and adding Syntax: VI filename i is the command to insert the data a is the command append the data :w it is for saving :q we need to quit from vi editor :wq we need to save and quit from vi editor :q! Forcefully quitting from vi editor without saving 11}VMSTAT: The VMSTAT displays various server values over given time interval. It is invoked from UNIX prompt, and it has several numeric parameters. The first numeric argument to VMSTAT represents the time interval [expressed in seconds] between server samples. The second argument specifies the number of samples to be reported Syntax: root> vmstat [first argument] [second argument] Ex: root> vmstat 2 2 12}PS: It displays the current process information. Syntax: root> ps root> ps –ef | grep –i java LS –ltr: It list the files and directories with complete description Syntax: root> ls –ltr PWD: It displays the present working directory. Syntax: root> pwd 13}CHMOD: This command is used to alter the file permissions after the file has been created. Syntax: root> chmod 777 *.lo Owner ======= 7 (u+rwx) 6 (u+wx) 5 (u+rx) Group ======= 7 (g+rwx) 6 (g+wx) 5 (g+rx) World ===== 7 (o+rwx) 6 (o+wx) 5 (o+rx) Permission ========= read + write + execute write + execute read + execute 14}Tar: Tar command is used to create tape archives and add or extract the files Creating tar file: tar –cvvf file.tar myfile.txt Extracting the files from tar file: 1) tar –cvf myfile.tar myfile : This command is used to compresse(tar) the file. 2) tar –xvf : This command is used to extract the file(untar) Ex: tar –xvf myfile .txt 15}find commands a}find / -type f -perm 0777 you will find which files have 777 permissions b}To delete temporary or text files by using this command find (.)or/ -name "*.tmp or txt" -print | xargs rm -rf c}To find all text file which contain word with some files find (.)or/ "*.txt" -print | xargs grep "sometext" b}find (.)or/ -name filename c}To find hidden files suppose name sunil,if you remember nil find (.) or/ -name "*nil*" or ".*" d}To get previous command !find e}find (.)or/ -mtime 1 find all modified files after 24 hours to 48 hours d}find (.) or / -mtime -1 find all modified files within 24 hours e}find (.)or/ -mtime +1 find all modified files after 48hours f}find (.)or/ -mmin +120 find all modified files within 2 hours NOTE:if you put c instead of m you will get changed files g}find (.)or/ -size +10000c | xargs ls -l find more than 10000 kb files h}find (.)or/ -size +10000c -size -50000c -print | xargs ls -l find between 10000c to 50000kb files i}find (.)or/ -mtime +10 -size +50000c | xargs ls -l find 10 days before and 50000kb above files j}find -not -name "sunil.java" find the files with both names 16}dmidecode | more to get hardware info of the system 17}uname -a output:Linux vivek-laptop 2.6.32-23-generic-pae #37-Ubuntu SMP Fri Jun 11 09:26:55 UTC 2010 Where, 2.6.32-23 - Linux kernel version number pae - pae kernel type indicate that I'm accssing more than 4GB ram using 32 bit kernel. SMP - Kernel that supports multi core and multiple cpus or $ cat /etc/*release(distribution version) output:No LSB modules are available. Distributor ID:Ubuntu Description:Ubuntu 10.04 LTS Release:10.04 Codename:lucid 18}uptime it shows since how long your system is running how many users logged in and the load averages 19}users displays how many users logged in 20}who shows username,date,time and host info 21}ssh username@hostname connect from one server to another server 22}hostname to find out hostname of the server or box 23}ftp hostname ftp>mput *.txt to uload files in to site ftp>mget *.txt to download files 24}lsof{list of open files} lsof -i : portno find the server listening port no or not 25}netstat -an | grep portno find the server listening 26}ps -ef | grep jvm find the process id 27}less it is used to open iso image,pdf and msword also open file and show the filename at the end if you type /name in the file,it will find the word 28}nohup scriptfile & it is used for back ground process a)if you execute jobs command it shows background running process 29}>logfile.txt with this u will clean the content of file if any thing is there or if it is new create new file 30}scp scp filename userid@hostname:destianation path(/tmp) 31}:%s oldstring/newstring/g with this you can change or replace name in the file 32}useradd you can add new username by this to OS 33}groupadd you can add group with this 34}usermod -G groupname username add user to group 35}grep userid /etc/passwd you can findout user by this command 36}mv filename destination path(/tmp) file will move to this folder b}mv filename from destination . that means you will get a file from destination to current directory c}mv filename1 filename2 with this you can rename the filename 37}diff filename1 filename2 to find the difference between two files b}sdiff filename filename1 compare two files side by side 38}cp -r filename "destination path(/tmp) To copy the files 39}rm -rf filenamme to remove files 40}more filename it is oposite to less command,it is used to open the file from start and it shows the current running process in the file displays the content of file one page at a time 41}gzip filename.tar bzip2 filename.tar.gz with this commands you will compress files more 42}bunzip2 filename.tar.gz.bz2 gunzip filename.tar.gz extract the files NOTE?:after tar command you can use these commands to more compress and extract 43}su userid switch to another user 44}mkdir making directory b}pwd present working directory c}cd change directory d}ls -lrt list the files with time and date 45}clear clear the screen b}cntrl + c stop the running process and go back to user 46}ping by this you can find the server up or down 47}alias A way to run a command or a series of Unix commands using a shorter name you get associated with such commands. 48} last command With last command we can watch user’s activity in the system. This command can execute normal user also. It will display complete user’s info like terminal, time, date, system reboot or boot and kernel version. Useful command to troubleshoot. 49} # : Denotes the super(root) user $ : Denotes the normal user /root: Denotes the super user’s directory /home: Denotes the normal user’s directory. 50}ln - Creates a symbolic link to a file. ln -s test symlink Creates a symbolic link named symlink that points to the file test Typing "ls -i test symlink" will show the two files are different with different inodes. Typing "ls -l test symlink" will show that symlink points to the file test. 51}batch (%batch<script file) this is mainly used whenever system not busy the program execute like...%atnow 1 year ...%at9amtomorrow 52}sed(stream line editor) used for required lines print delete required lines replace with another word a)substitute with another word from out side text file $sed 's/oracle/sq1/g' sunil.txt b)sed '|start line numb|,|end line numb| d' sunil.txt c)sed -n '2,3p' sunil.txt>sunil1.txt go 2,3 lines in to new files
coca-cola Posted November 20, 2013 Report Posted November 20, 2013 maaya unix commands ante linux meedha kuda panichesthayyi gaaaa
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 maaya unix commands ante linux meedha kuda panichesthayyi gaaaa same baa linux unix aix hp unix redhat all are same but small differences at one or two places
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 Hector08 baa....emina videos vunnaya youtube lo.... administration side... can you post some good videos.... basic documentation URL kuda ping cheyy.... IBM library kaadu antha solid videos levu bro....but i got some pdf s to understand
coca-cola Posted November 20, 2013 Report Posted November 20, 2013 thanx bhaya ...........bhayaa nenu main servers linux meeedha was admin console open cheyalli ante ela ....................ekkada naa vennake ppeddha stair case servers unnayii veeedu orrikee servers meedha admin console ka antadu naaku eppudu vatini photos lo chudatame live ga no exp vadiki cheppakunda edho managing tharwatha chudham ani........eppudu avasaram ledani managingg....previous consultant gadu ecchina document lo edho path adhi eddhi raasadu assalu nakku emo servers unna system chusthe chusthe cmd prompt leka kanipisthundhi assallu em enter cheyyallo artham kavatlee admin console login avvali ante
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 thanx bhaya ...........bhayaa nenu main servers linux meeedha was admin console open cheyalli ante ela ....................ekkada naa vennake ppeddha stair case servers unnayii veeedu orrikee servers meedha admin console ka antadu naaku eppudu vatini photos lo chudatame live ga no exp vadiki cheppakunda edho managing tharwatha chudham ani........eppudu avasaram ledani managingg....previous consultant gadu ecchina document lo edho path adhi eddhi raasadu assalu nakku emo servers unna system chusthe chusthe cmd prompt leka kanipisthundhi assallu em enter cheyyallo artham kavatlee admin console login avvali a is ur system windows or linux bro.?......u can open any console from ur system for that u jus need host name n port no of the server for example:hostname:port/ibm/console
coca-cola Posted November 20, 2013 Report Posted November 20, 2013 nenu use chesthunadhi prsnt naa laptop windows but main servers unnnadhi matram linux platform meedha...............
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 nenu use chesthunadhi prsnt naa laptop windows but main servers unnnadhi matram linux platform meedha............... u can connect from ur lappy hostname of the server port no of server unte chalu https://hostname:portno/ibm/console ila kodithe browser lo vasthundi idhe format
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 nenu use chesthunadhi prsnt naa laptop windows but main servers unnnadhi matram linux platform meedha............... if u want to connect to server not console means through putty u can do it for that u need host name of the server
coca-cola Posted November 20, 2013 Report Posted November 20, 2013 bhayya previous consultant gadu ecchina datntlo websphere portal installation host name: ani edhi undhii ticccccc.tt.tt was console ani http://12334.5647../ibm/console ani undhi eppudu nenu above host: was console rendu kalipi kodithe doesnt find chepthundhiii
coca-cola Posted November 20, 2013 Report Posted November 20, 2013 nee maild id unte pm cheyyi baa.........i will fwd u few documents
HECTOR08 Posted November 20, 2013 Author Report Posted November 20, 2013 bhayya previous consultant gadu ecchina datntlo websphere portal installation host name: ani edhi undhii ticccccc.tt.tt was console ani http://12334.5647../ibm/console ani undhi eppudu nenu above host: was console rendu kalipi kodithe doesnt find chepthundhiii neeku rights unnayya open cheyyadaniki
Recommended Posts