# Login as sudo : sudo /usr/binrootsh/bin/su - bpr(servername) (OR) sudo su
# Get the Java instance (Linux) : ps -ef | grep java
# Get the Java instance (Windows) : wmic process where "name='java.exe'" get ProcessID, Commandline /format:list
# Find details of other commands : ifconfig
# Quit from current location : ctrl + c
# Disk space : df -h
# Switch directory : cd /app
# Print the content of the file : cat flat_file.properties
# Current directory : pwd
# Permissions for folder and it's subfolders / files : chmod -R 777 *
# Command to mark the iiq command as executable : chmod +x iiq
# Open file from Linux : vi HRData.csv (filename)
# Exit from vi : Insert ---> Esc ---> : ----> q! (OR) Insert ---> Esc :wq!
# Get the first 500 lines of information : head -500f oim_server1.log
# Get the last 500 lines of information : tail -500f oim_server1.out
# Copy folder and its subfolders : cp -R HRData
# move folder / file : mv HRData
# Sorting files in Linux : ls - ltr
# create a empty file : touch hrdata.txt
# Create directory : mkdir peoplesoft (filename)
# Remove a directory : rmdir HRData
# Remove file : rm data.sh
# Remove folder and it's subfolders / files : rm -r HRData
# Set variable : export APP_SERVER=weblogic
# To run the shell script : sh HRData.sh (OR ) ./HRData.sh (Navigate script location then run script)
# HostName : hostname
# Enable Edit mode / before moidfy : i
# Ram size : fre
# CPU's Size : lscpu
# > : It indicates that the console is running and ready to accept commands.
# > : It indicates that the console is running and ready to accept commands.
No comments:
Post a Comment