How to find out histotry command from other session

Hi gurus,
I use RHEL 5.4
Some user log onto server with root and make change at some files. How can I find out history command from other session with the same user.
history command is just give me history commands of my own session.
Thanks
Ch

The file which holds the commandline history is .bash_history in the home directory of the user.
So in the case of root, /root/.bash_history
Please mind that if you log in as root, or become root your session will add to that file as well.
Another issue with the history file is that when multiple sessions are logged in, every session writes in its own version of the same file. So the last one "wins", which means that version is the one which is truly stored.
If files are changed, a find command with the 'mtime' parameter should be helpful.

Similar Messages

  • HOW TO  FIND OUT TABLE DESCRIPTION FROM JDBC?

    HOW WILL FIND OUT TABLE DESCRIPTION FROM JDBC?

    Have a look at ResultSetMetaData
    getColumnCount()
    getColumnName(int)
    getColumnTypeName(int)
    getColumnDisplaySize(int)
    ***Annie***

  • How to find out company code from a plant ?

    Hello friends,
    I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD".   For that, we have to export company code ID.  Currently it is hard coded with one company code.  Now we want to make this program usable by all company codes.  So instead of hard coding, I would like to dynamically find out company code based on the plant.   So I want to know - how to find out company code from a plant ?  Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
    Thanks,
    - Chetan

    hi
    u can find this from table T001K
    or just goto EC01
    here click on STRUCTURE>NAVIGATION
    double click on co code u will get the list
    u can slo try this in EC02
    regards
    kunal

  • How to find out the user from the Jobs queue in Report server

    Hello All!
    I have a doubt about finding out the user from the scheduled jobs queue. Say I go ahead and schedule a report on Reports Server how can I find out the user name. When I view the jobs using showjobs I could see that the DBMS_JOBS table has a column under "Job Owner". But it invariantly shows it is "rwuser". So is there a way to find out which user has scheduled which job?
    Regards
    Shobha

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • How to find out the metachian from subchain

    hello friends,
    could you please let me know , how to find out the meta chain from subchian .
    I know the subchain name and wanted to check that this chian is included in which meta chian ,
    actaully here so many chain , so its confusing .
    Is there any way ?

    Hi,
    Pls chk this links,
    Re: Meta chains - how to create n example scenerios
    Re: How to create process chains, infopackage groups & Meta chains
    Hope this helps,
    regards
    CSM reddy

  • How to find out the tables from extract structures

    Hi All,
    As I know my data sources are 2lis_04_p_matnr,2lis_04_p_comp,2lis_04_p_arbpl.
    How to find out the tables concerned with the fields in the extract structure.
    Thanks

    Pl check this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/79eb3cad744026e10000000a11405a/frameset.htm
    OR navigate to: help.sap.com - netweaver - bi content - supply chain - look for your application area and the extractor and you will see the source tables and fields.
    Ravi Thothadri

  • How to find out portal user from sso cookie ?

    Hi,
    I want to find out the portal user id from Portal30_sso cookie. It is required for security in my java servlet.
    Thanks
    Vikas

    First of all, you can't get anything from the portal30_sso cookie or the portal30 cookie or the SSO_ID cookie. These are cookies established for (1) The login server session; (2) The Portal session; (3) The login server single sign-on cookie - visible only to the login server.
    When you want to know who the current user is, you need to establish the context. If your servlet is standalone and not a partner application to the login server and it's not a portlet, etc., then what context does it have? What concept of users does it have? If you are really asking what Portal is currently logged on, that is still a loaded question. The user's browser could be accessing several portal's at the same time, each with a different identity. What I am getting at is that your servlet needs to somehow be associated with a particular portal before it can even think of asking this question.
    The ways to associate your servlet with a portal would be
    [list=1]
    [*]Make it a partner application
    [*]Make it a portlet
    [*]Make it an external application
    [list]
    Hope that helps.

  • How to find out spool number from a jobname.

    Hi,
    If I know the jobname and jobcount how to find the spool number of it. Jobname and Jobcount are in table TBTCO and spool number is in TSP01. Is there any link between these tables.
    Your help will be appreciated.
    Thanks & Regards,
    Soumya.

    Hi,
    Check the below link
    [Re:Spool request;
    Regards,
    Surinder

  • How to find out  fn calls  from portal.

    can anyone help me to find out  fn calls in xrpm portal?
    steps!

    You can use the following steps for doing it in portal
    Open two sessions of SAP EP with the same user
    Navigate to: Portfoliomanagement – Administration – Cache Administration – RFC Debugging (first session)
    Activate the Debugging
    Execute xRPM application in the second session
    Switch back to the RFC Debugging press Load
    Select the executed function
    All parameters will be displayed in the Context Input window
    if you need to do debugging in backend !
    make sure to swithch to new editor.
    regards@gopeekrishnan

  • How to find out the table from the field.

    Hi Friends,
    I want to know the table name from the field.
    I mean i know the field with which i want to know the table. I tried but could find the structure only but how can i find the table.
    Please guide me.
    siva.

    Hi Sivakumar,
    Using DD03L (in SE16, SQVI) you can list the tables & structures which contain the desired field.
    (If it's a very common field [e.g. MATNR] you'll get a huge amount of hits...you can also use 'F1' + 'Technical information' [in the transacton you are] to get information on table & field as mentioned before)
    http://www.erpgenie.com/abap/tables.htm
    BR
    Csaba

  • How to find out a file from client machine

    hi all,
    I want to read a file from client machine, like a outlook express file in which all the address are saved, using servlet. Initially i do not know the file path for that file, How i can read that file.
    plz help me
    thanx in advace
    Manish

    You have 2 possibilities. First, you might be able to mount the client's disk drive at the server; the servlet can then access that drive directly. Second, install a client program on the client machine and communicate with that program, and have it do the search (or whatever).
    Outside of Java, there are remote-access programs - like PCAnyWhere.

  • How to find out Database version from SQLplus ?

    Which command do I have to type in sqlplus in order to get the underlying database version?

    SQL> conn /as sysdba
    Connected.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    SQL> select version from v$instance;
    VERSION
    9.2.0.4.0
    Regards,
    Sabdar Syed.
    null

  • How to find out email id from CUA ?

    Hi,
    I would like to have a list of user id with email from CUA. Is there any table/report from where I can get both ?
    All users are maintained with user id and email into SU01.
    Thanks...

    Hi Prashant,
    To make it even more easy I would suggest that you use transaction SQVI. I tried it for this issue and it worked. I plan to use it now for other similar queries. In SQVI you can define a join of USR21 and ADR6 tables and construct a query around it which  would get you the data easily.
    Please follow the following steps for this:
    1. Go to transaction SQVI.
    2. Give the query name as Z*....
    3. Now press the create button.
    4. Give a title of your choice and in data source choose TABLE JOIN option. Choose Basis Mode option as well.Press enter.
    5. Now you come to the Join Definition Screen. Choose insert table and then choose ADR6 and USR21. After this go back.
    6. Now choose List fld. select TABSTRIP. From available fields option move
    User name in user master record  and Internet mail (SMTP) address to Fields in list. This will define out output fields.
    7. Choose SELECTION FIELDS tabstrip. Here move the value User name in user master record from available fields to Selection fields.
    8. Save the entries.
    9. Execute the query and give user ids of your choice and check for the output.
    Let me know if it worked for you!!. Please award points accordingly.
    Regards.
    Ruchit.

  • How to find out Company code from Plant in BW

    Hi,                                                      This is probably a very basic question.                                 
    In one of my ODSs, I have 0PLANT infoobject but do not have the Company Code. I thought 0COMP_CODE should have been an attribute of 0PLANT. But it is not and I am NOT finding anyway to derive the company code from the Plant code.                              
    I guess I can change my datasource to get that value but thought the Plant-->Company Code link is one of the most basic things in SAP R/3.    
    I cannot imagine it can be missed in the Business Content design by SAP.  
    So thought I would check with you to see if my expectation is correct.    
    If not, what might have been the reason behind the exclusion of the link between Plant and Company Code from the Business Content.                                                                               
    Thanks and regards,                                                       
    Atul Kulkarni

    Hi,
    we are running RETAIL and by design:
    a plant (0PLANT ) belongs to a sales organization (0SALESORG attr of 0PLANT) which belongs to a company code (0COMP_CODE attr of 0SALESORG)
    this defines a unique comp_code for a plant.
    You can therefore put the following two fields in an internal table of a start routine
    SELECT pPLANT sCOMP_CODE
    INTO CORRESPONDING FIELDS OF TABLE lt_internal
    FROM /BI0/PPLANT p
    INNER JOIN  /BI0/PSALESORG s ON sSALESORG = pSALESORG
      AND sOBJVERS= pOBJVERS
      AND s~OBJVERS = 'A'.
    and look it up in your IObj routine.
    In R/3 that's true WERKS (T001W9 belongs to a BWKEY (T001K) which belongs to a BUKRS.
    hope that helps...

  • How to find out Column names from JDBC?

    Hello,
    How to get Oracle's Table Meta Data without firing a "SELECT" statement and using ResultSet meta data ?
    Thanks,
    -raj

    This works for most jdbc drivers:
    Connection con = ???;
    DatabaseMetaData dbmd = con.getMetaData();
    ResultSet rs = dbmd.getColumns( null, null, "TABLENAME", null );Read the API: http://java.sun.com/j2se/1.4.1/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)

Maybe you are looking for

  • Relatório de adiantamento Cliente

    Caros, Estou precisando fazer um relatório que traga todos adiantamentos que tenha pedidos relacionado . Alguém já conseguiu fazer um desse? Exemplo: SELECT T0.DocNum AS 'Nº ADIANTAMENTO', T0.DocDate AS 'DATA LANÇAMENTO', T0.CardName  AS 'NOME DO CLI

  • Database Adapter using Logical Delete Polling Strategy not updating field

    I have an ESB database adapter defined against a table. The adapter is set to use the Logical Delete Polling Strategy, and the table has an extra column defined as the "delete" field. When I register the adapter to the ESB and add a record to the tab

  • Sound swapped to HDMI on its own

    I read on one of these threads that someone was having problems with sound and that videos where muted when playing the video, well,  i was watching a video, cant remember what or where it was, it was a trailer for anew movie,i couldnt here the sound

  • How do I select to print a document without margins?

    How do I select to print a document without margins?

  • Thinkvantage system update error thinkpad t41

    hello everyone.... so i'm running (windows server 2008) on thinkpad t41 and when i try to run the (thinkvantage system update) i keep getting this error messge  .    (an error occured while gathering user information).... does anyone no how to fix th