Thursday 30 July 2015

Basic Linux Commands

Linux Basic Commands

1.ls

     listing directories.

2.rm

     unlink a file or directory.
     ex :rm /home/riyas/openerp/14-5-2015_order_type.tar.gz

3.cd ..

     for getting back to a parent directory.
     /home/riyas/openerp/14-5-2015_order_type/order_type suppose this our current direcory

     then open a terminal and type cd .. then
     /home/riyas/openerp/14-5-2015_order_type

4.reset

   its for reseting the command prompt.
  every thing will be clear.



5.exit

  for closing a terminal.


6.ctrl + alt +delete


  short cut for logout

7.any_command -help |more

  Display a brief help on a commands.


8)help


  Display brief info on a bash (shell) built-in commands.

9)pwd


  Print working directory,

10)hostname


  Print the name of the local host

11)whoami

   Print my login name

12)date

   Print the operating system current date

13)who

   Determine the users logged on the machine.

14)w

  Determine who is logged on the system, find out what they are doing, their processor ussage, etc. Handy security command

15)last

   Show listing of users last logged-in on your system. Really good idea to check it from time to time as a security measure on your system.

16)history | more

   Show the last (1000 or so) commands executed from the command line on the current account.


17)comman

  Run the most recent command from my bash history commands that starts with the string "comman"

18) uptime

 Show the amount of time since the last reboot.


19)ps axu | more

    List all the processes currently running, even those without the controlling terminal, together with the name of the user that owns each process.

20)top

   Keep listing the currently running processes on my computer, sorted by cpu usage (top processes first). Press <Ctrl>c when done.

21)free

   Memory info (in kilobytes). "Shared" memory is the memory that can be shared between processes (e.g., executable code is "shared"). "Buffered" and "cashed" memory is the part that keeps parts of recently accessed files - it can be shrunk if more memory is needed by processes.

22)cat /proc/cpuinfo

  Cpu info - shows the content of the file cpuinfo.

23)cat /proc/interrupts

  List the interrupts in use. May need to find out before setting up new hardware.

24)cat /proc/version

   Linux version and other info.

25)cat /proc/filesystems

   Show the types of filesystems currently in use.


26)lsmod

    Show the kernel modules currently loaded.

27)set|more

   Show the current user environment (in full). Normally too much to bother.


28)Copy

scp -r admin@192.3.1.25:/opt/erp/test /home/riyas/Desktop/test


No comments:

Post a Comment