|
|
|
Linux commands for newbies |
All this examples are run using cygwin
ls -l Display directories - sorted by file name
$ ls -l
total 9
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:45 bin
d--x--x--x 3 PednekaA mkgroup 0 2006-11-30 16:00 cygdrive
drwxrwxr-x+ 1 PednekaA mkgroup 0 2010-04-10 20:52 dev
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:46 etc
drwxrwxrwt+ 1 PednekaA root 0 2010-04-10 21:11 home
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:37 lib
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 17:48 opt
dr-xr-xr-x 8 PednekaA mkgroup 0 2006-11-30 16:00 proc
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 20:27 sbin
drwxr-xr-x+ 1 PednekaA mkgroup 0 2010-04-10 20:55 srv
drwxrwxrwt+ 1 PednekaA root 0 2010-04-10 21:46 tmp
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:27 usr
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:39 var
ls -lrt Display directories - sorted by file date
$ ls -lrt
total 9
dr-xr-xr-x 8 PednekaA mkgroup 0 2006-11-30 16:00 proc
d--x--x--x 3 PednekaA mkgroup 0 2006-11-30 16:00 cygdrive
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 17:48 opt
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 20:27 sbin
drwxrwxr-x+ 1 PednekaA mkgroup 0 2010-04-10 20:52 dev
drwxr-xr-x+ 1 PednekaA mkgroup 0 2010-04-10 20:55 srv
drwxrwxrwt+ 1 PednekaA root 0 2010-04-10 21:11 home
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:27 usr
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:37 lib
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:39 var
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:45 bin
drwxrwxrwt+ 1 PednekaA root 0 2010-04-10 21:46 tmp
drwxr-xr-x+ 1 PednekaA root 0 2010-04-10 21:46 etc
ps -ef To show all processes
$ ps -ef
UID PID PPID TTY STIME COMMAND
PednekaA 6652 1 con 19:28:33 /usr/bin/bash
PednekaA 8008 6652 con 20:01:54 /usr/bin/ps
ps -ef | grep man
To find a process. In this example we searched for 'man' process
$ ps -ef | grep man
PednekaA 6720 6652 con 22:51:15 /usr/bin/man
vi create, edit a file
This will create a.txt
$ vi a.txt
Now press ESC key and hit i
Start typing
Now to save use following keys :wq
To search in a file use :/string
cat Cygwin.bat
To view contents of a file
$ cat Cygwin.bat
@echo off
C:
chdir C:\apps\cygwin\bin
bash --login -i
|
|
|
| Wheat Cookies
|
 Wheat cookies is a healthy snack for your fussy toddler......
|
| Babyfood |
2010-Aug-26 |
| Wheat Cookies
|
 Wheat cookies is a healthy snack for your fussy toddler......
|
| Veg Recipes Baking |
2010-Aug-26 |
| Encoding special characters in userinput or on server
|
| Encoding can be done either in Javascript or JAVA encodeURIComponent, escape, java.net.URLEncoder..
|
| Java JSP |
2010-Aug-09 |
| Jstl fmt tag i18n formatdate formatcurrency
|
| fmt:setBundle, native2ascii.exe, fmt:message, fmt:setLocale, fmt:formatDate, fmt:formatNumber type=currency..
|
| Java JSP |
2010-Aug-05 |
| How to read and write a file
|
| How to read and write a file java.io.BufferedReader,java.io.FileReader, InputStreamReader ...
|
| Java J2SE |
2010-Aug-04 |
| jQuery validate form using ajax 2
|
| How to validate/submit form using ajax and jQuery input#, ($.ajax)..
|
| Javascript |
2010-Jul-23 |
| jQuery validate form using ajax 1
|
| How to validate/submit form using ajax and jQuery ($.ajax)..
|
| Javascript |
2010-Jul-23 |
| Dosa
|
  Masala dosa is my favourite South Indian dish and I relish it it whenever we go to a South Indian food joint......
|
| Veg Recipes Parathas |
2010-Jul-14 |
| Palak Sukka/Spinach Sukka/Palakachi Sukhi Bhaji
|
 .JPG) If you are looking for a palak recipe apart from aloo palak or palak paneer, which quick yet delicious you are at the right place......
|
| Veg Recipes Dry Veg |
2010-Jul-13 |
| How to create datasource in RAD Websphere
|
| Create JDBC provider, datasource and JAAS security setup, JDBC connection URLs
|
| Servers Websphere |
2010-Jul-08 |
| Get Started 4
|
| Struts2 framework structure, how various components fit together
|
| Java Struts2 |
2010-Jul-07 |
| How to populate a form when JSP is called first time
|
| This is achieved throught setting bean in request, using frameworks like Struts2, Spring3..
|
| Java JSP |
2010-Jul-07 |
| Spring3 And Hibernate 4
|
| Spring3 and Hibernate 3.5.3 working together @Controller, @RequestMapping, @InitBinder, HibernateTransactionManager, LocalSessionFactoryBean, HibernateTemplate
|
| Java Spring |
2010-Jul-07 |
| Spring3 And Hibernate 3
|
| Spring3 and Hibernate 3.5.3 working together @Controller, @RequestMapping, @InitBinder, HibernateTransactionManager, LocalSessionFactoryBean, HibernateTemplate
|
| Java Spring |
2010-Jul-07 |
| Spring3 And Hibernate 1
|
| Spring3 and Hibernate 3.5.3 working together @Controller, @RequestMapping, @InitBinder, HibernateTransactionManager, LocalSessionFactoryBean, HibernateTemplate
|
| Java Spring |
2010-Jul-07 |
| Spring3 And Hibernate 2
|
| Spring3 and Hibernate 3.5.3 working together @Controller, @RequestMapping, @InitBinder, HibernateTransactionManager, LocalSessionFactoryBean, HibernateTemplate
|
| Java Spring |
2010-Jul-07 |
|
|