Skip to content

Instantly share code, notes, and snippets.

1. sudo su - oracle - while logged into a unix terminal using your normal username, you can log into the sudo user (in this example, Oracle)
2. SSH - (Connect a secure connection through terminal to a server ssh @) ssh c_redfern@server1.technicalconfessions.com
ifconfig - (Find out the IP address of the computer) ifconfig
chmod - (change the permissions of the file or directory (object). ) chmod -R 777 ./filename
chmod -R - Include the -R parameter if it's a directory and you wish for all the files within that directory to be altered chmod -R 644 ./foldername
mkdir - makes a new directory mkdir ./foldername
pwd - currently directory location
whoami - (find out which user you're logged in as) whoami
find - (Find a file/directory) find ./ -name filename
echo - (respond back to the user. This is useful if you want to see what environment variables are set) echo $java
rm - (removed a file) rm ./filename
top - Will display a dynamic of the CPU, swap and RAM memory available
1. chmod -R 644 ./DirectoryName - Include the -R parameter if it's a directory and you wish for all the files within that directory (DirectoryName) to be altered chmod with permissions 644
2. mkdir - makes a new directory mkdir ./foldername
3. rm - (removed a file) rm ./filename
4. mv - move a file to another location. This is also used for renaming a file) mv ./filename ./newlocation/filename
5. ls -la - Makes a list of all the files within the directory (including the hidden ones)
6. ls -ltr - Makes a list of all the files within the directory in the respective order of 'last updated'
7. find - (Find a file/directory) find ./ -name filename
1. NETSTAT - Find all the addresses and port numbers that are listening on port 8090. This includes all the state of the listening port) netstat -an | grep 8090
2. TELNET - (connect to a hostname with a port number) telnet localhost 8080
3. PS -ef - (Find out all the services that are listening. The example will also find all the onces with Vordel associated) ps -ef | grep -i Vordel
4. nslookup - (uses an IP address to find the hostname) nslookup 172.22.226.73
5. ping -t technicalconfessions.com - Continuous ping to the hostname (remove the -t and it will do it 5 times)
6. ifconfig - (Find out the IP address of the computer) ifconfig
7. ./sbin/arp -n - View the MAC to IP address conversion on the server
[05-20-2015 17:23:05.826 EDT] INFO [DeployerCommand] Entering DeployerCommand#registerPlugin()
[05-20-2015 17:23:05.826 EDT] DEBUG [JndiTemplate] Looking up JNDI object with name [ejb.stateless.PlatformService#oracle.iam.platformservice.api.PlatformServiceRemote]
[05-20-2015 17:23:06.154 EDT] INFO [DeployerCommand] oracle.iam.platform.pluginframework.PluginStoreException: An error occurred while storing the plugin in store ORA-00001: unique constraint (PROD_OIM.PLUGINS_UNIQUE_NAME) violated
[05-20-2015 17:23:06.154 EDT] DEBUG [DeployerCommand] PluginException occurred while registering the plugin in OIM.
oracle.ide.lcm.exceptions.LcmException: PluginException occurred while registering the plugin in OIM.
at oracle.ide.lcm.commands.DeployerCommand.registerPlugin(DeployerCommand.java:352)
at oracle.ide.lcm.commands.DeployerCommand.deploy(DeployerCommand.java:188)
at oracle.ide.lcm.commands.DeployerCommand.doit(DeployerCommand.java:144)
at oracl
PS C:\Windows\system32> Get-User -ResultSize 10
Get-User : The term 'Get-User' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-User -ResultSize 10
ConnectorServer.exe Information: 0 : Starting connector server: C:\Program Files (x86)\Identity Connectors\Connector Server
DateTime=2015-06-05T17:15:12.2079484Z
ConnectorServer.exe Error: 0 : Exception occured starting connector server
Could not load file or assembly 'file:///C:\Program Files (x86)\Identity Connectors\Connector Server\O365.Connector.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
at System.Reflection.Assembly _nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.Assembly, System.Threading.StackCrawlMark ByRef, Boolean, Boolean)
at System.Reflection.Assembly InternalLoad(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, Boolean)
at System.Reflection.Assembly LoadFrom(System.String)
at Void .ctor() in ApiLocal.cs:380
at Org.IdentityConnectors.Framework.Api.ConnectorInfoManager GetLocalManager() in Api.cs:
[2015-06-29T12:15:10.333-04:00] [oim_server1] [WARNING] [] [org.apache.struts.chain.commands.AbstractExceptionHandler] [tid: [ACTIVE].ExecuteThread: '47' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 7100ed739f5dc8f5:154de5f8:14e24f8bb43:-8000-000000000000bff5,0] [APP: oim#11.1.1.3.0] Unhandled exception[[
javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NullPointerException
at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:221)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.imp
@nervouswiggles
nervouswiggles / 408_Available O365 SKU commands
Last active August 29, 2015 14:27
Powershell command used to search for the active SKUs as well as the number of active units available. Check out https://technicalconfessions.com/posts.php?post_id=408
Get-MsolAccountSku | Format-Table AccountSkuId, ActiveUnits
AccountSkuId ActiveUnits
------------ -----------
technicalconfessionsdev:STANDARDWOFFPACK_IW_F... 500000
technicalconfessionsdev:STANDARDWOFFPACK_STUDENT 1010
technicalconfessionsdev:STANDARDWOFFPACK_IW_S... 1000000
technicalconfessionsdev:STANDARDWOFFPACK_FACULTY 1010
@nervouswiggles
nervouswiggles / 408_Unable to assign this license Office 365 Powershell command
Last active August 29, 2015 14:27
Issue when running an O365 Powershell command to disable the service plan. Error - Set-MsolUserLicense : Unable to assign this license. https://technicalconfessions.com/posts.php?post_id=408
PS C:\Windows\system32> $newLicenseAssignmentOption = New-MsolLicenseOptions -AccountSkuId Montgomerydev:STANDARDWOFFPACK_FACULTY -DisabledPlans SHAREPOINTSTANDARD_EDU
PS C:\Windows\system32> Get-MsolUser -ObjectId b8f53583-ec3f-47d2-afaf-a0f29ad22ad0 | Set-MsolUserLicense -LicenseOptions $newLicenseAssignmentOption
Set-MsolUserLicense : Unable to assign this license.
At line:1 char:63
+ Get-MsolUser -ObjectId b8f53583-ec3f-47d2-afaf-a0f29ad22ad0 | Set-MsolUserLicens ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Set-MsolUserLicense], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InvalidLicenseConfigurationException,Microsoft.Online.Administration.Automation.SetUserLicense
PS C:\Windows\system32>