Linux - Command for creating User
useradd <username>
passwd <username>
then type new password
Command to find ip address of linux box
sudo /sbin/ifconfig or ifconfig
Command to check open port
Linux :
netstat -ano | grep "1521"
Windows :
netstat -ano | find "1521"
Linux - Command to set bash path
export PATH=/usr/bin:/usr/sbin:/bin
Command to change Unix password
To change the root password:
sudo passwd
To change your user password:
passwd
To change other users password:
sudo passwd USERNAME
Creating jar/zip/unzip/tar file in Linux
Command for creating jar file in linux :
JAR: jar cvf <jar_name> <Java_file>
untar: tar -xvzf <file_name>.tar.gz
tar: tar -cvzf <file_name>.tar.gz
Linux - Command to set bash path
export PATH=/usr/bin:/usr/sbin:/bin
export ORACLE_HOME=/app/MIddleware/oracle/dbhome_1/11.0.4/
useradd <username>
passwd <username>
then type new password
Command to find ip address of linux box
sudo /sbin/ifconfig or ifconfig
Command to check open port
Linux :
netstat -ano | grep "1521"
Windows :
netstat -ano | find "1521"
Linux - Command to set bash path
export PATH=/usr/bin:/usr/sbin:/bin
Command to change Unix password
To change the root password:
sudo passwd
To change your user password:
passwd
To change other users password:
sudo passwd USERNAME
Creating jar/zip/unzip/tar file in Linux
Command for creating jar file in linux :
JAR: jar cvf <jar_name> <Java_file>
untar: tar -xvzf <file_name>.tar.gz
tar: tar -cvzf <file_name>.tar.gz
Linux - Command to set bash path
export PATH=/usr/bin:/usr/sbin:/bin
export ORACLE_HOME=/app/MIddleware/oracle/dbhome_1/11.0.4/
No comments:
Post a Comment