Posts

File and Directory Navigation The " pwd " command displays the current directory: root> pwd /u01/app/oracle/product/9.2.0.1.0 The " ls " command lists all files and directories in the specified directory. If no location is defined it acts on the current directory. The "-a" flag lists hidden "." files. The "-l" flag lists file details. root> ls root> ls /u01 root> ls -al More Examples: ls -al | pg do a full directory listing and prompt to stop stuff whizzing off the page. ls | wc -l count the files in the current directory. ls -alt list files in date order ls -alt | head -10 as above but only display the first 10 ls -l $ORACLE_HOME/reports60/printer/admin/spoolcmd.sh Verify that the spoolcmd.sh file has execute permissions ls -s | awk '{if ($1 > 50) print $1 " " $2 }' list all files over 50 blocks in size. ls -alq List files with hidden characters. Very useful when you cannot delete a file f...