Tuesday, February 18, 2014

Linux command part 2

1. echo: Print message on the terminal
  echo “<message>”
$ echo "Welcome to the workshop"
Welcome to the workshop                 

2-cat: command is used to display the contents of a small file
on terminal

3-gzip: command is used to compress the file, and gunzip is
used to de-compress it.
 usage: gzip <file name>

4-gunzip :The compression ratio depends on the type, size and
nature of the file
 usage: gunzip <file name with.gz>

5- head: command displays the top of the file, when used
without any option it will display first 10 lines of the file

6 tail-Similarly tail command displays the end of the file. By
default it will display last 10 lines of the file

7-exit-To leave the remote computer.

8-rmdir-Delete a empty folder.

9-ps-ps shows you your running jobs.

10-vim – Vi Improved, a programmers text editor   

11- cp – copy files and directories

12-find – search for files in a directory hierarchy

13-history – prints recently used commands  

14-grep ­ print lines matching a pattern   

15-wc ­ print the number of newlines, words, and bytes in files

16-sort – sort lines of text files   

17- chmod – change file access permissions

18-chown – change file owner and group  

19 su –  change user ID or become super­user

20-passwd – update  a user’s authentication tokens(s)

21-who – show who is logged on  

22-kill – to kill a process(using signal mechanism)

23- ssh – SSH client (remote login program)                                    
    “ssh is a program for logging into a remote machine and for         
   executing commands on a remote machine
24-scp – secure copy (remote file copy program)                            
          “scp copies files between hosts on a network” 
25-fdisk – partition manipulator

26-mount – mount a file system                                                  
    Usage: mount ­t type device dir   

27-umount – unmount file systems                                             
    Usage: umount [OPTIONS] dir | device

28- du – estimate file space usage                                                           
     Usage:  du [OPTION]... [FILE]..

29-df – report filesystem disk space usage                                            
    Usage: df [OPTION]... [FILE]... 

30-reboot – reboot the system   

31-• poweroff – power off the system   

32-locate – find or locate a file

33-kate – KDE Advanced Text Editor  

34-• gedit ­ A text Editor. Used to create and edit files.
35-jobs – displays the names and ids of background jobs  


No comments:

Post a Comment

How to create user in MY SQL

Create  a new MySQL user Account mysql > CREATE USER ' newuser '@'localhost' IDENTIFIED BY ' password '...