CP Web Hosting
CP Web Hosting
 

Go Back   Hosting Forums - cp web hosting > Customer Support > Administrating Servers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2009, 12:19 AM
Senior Member
 
Join Date: Jun 2009
Posts: 351
Default Simplest way to know about executable files

If the /tmp directory contains any of the executable file, all the sites stops. The simplest way to know executable file in a directory is by using -F option with ls command, which distinguishes directory and executable files from ordinary files. The -F option causes a slash (/) to be appended to the filename for directories and an asterisk (*) to be appended to files which are executable. For example,

$ ls -F
__________________
WinHost Web Hosting
Reply With Quote
  #2 (permalink)  
Old 08-07-2009, 12:32 AM
Senior Member
 
Join Date: Jun 2009
Posts: 351
Default Options most frequently used with ls command

$ ls -a (displays the hidden files)
$ ls -F (causes a slash (/) to be appended to the filename for directories and an asterisk (*) to be appended to files which are executable)
$ ls -q (displays the non-printable characters in file name with the ?)
$ ls -b (displays the non-printable characters in file name with the octal number)
$ ls -lu (causes the last access time stamp to be displayed instead of the last modification time)
$ ls -ls (gives the file size in blocks instead of bytes)
$ ls -t (Sorts the output by time stamp instead of name)
$ ls -r (Reverses the order of the output. By itself, displays the output in reverse alphabetic order, used with -t, displays the output by the most recent time stamp)
ls -x (Forces the output into multicolumn)
__________________
WinHost Web Hosting
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0