LevelUp! Studio » snipplet https://blog.levelup.in.th Experience the new world. Fri, 26 May 2017 10:06:07 +0000 th hourly 1 http://wordpress.org/?v=3.8.1 [Linux] ค้นหาไฟล์ที่ต้องการ https://blog.levelup.in.th/2010/07/27/linux-find-files-larger-than-a-given-sizelinux-%e0%b8%84%e0%b9%89%e0%b8%99%e0%b8%ab%e0%b8%b2%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/ https://blog.levelup.in.th/2010/07/27/linux-find-files-larger-than-a-given-sizelinux-%e0%b8%84%e0%b9%89%e0%b8%99%e0%b8%ab%e0%b8%b2%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/#comments Tue, 27 Jul 2010 10:04:02 +0000 http://blog.levelup.in.th/?p=615 สำหรับ entry นี้จะฝากคำสั่งที่หลายๆคนอาจจะตามหาอยู่ สำหรับการหาไฟล์บน linux

find

เป็นคำสั่งพื้นฐานในการค้นหาไฟล์ หรือโฟลเดอร์ที่เรากำลังค้นหาอยู่บนระบบปฎิบัติการ linux

ตัวอย่างการใช้งาน

find /path/to/ -name filename => หาตามชื่อไฟล์

find /path/to/ -type f -size +1024k=> หาตามขนาดไฟล์ (มากกว่า 1024kB /1 MB)

ฝากไว้แค่นี้หล่ะกันครับ :p

source : Find files larger than a given size in Linux | Tips4Linux.com.

]]>
https://blog.levelup.in.th/2010/07/27/linux-find-files-larger-than-a-given-sizelinux-%e0%b8%84%e0%b9%89%e0%b8%99%e0%b8%ab%e0%b8%b2%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/feed/ 0
PHP : Get Full URL path https://blog.levelup.in.th/2009/03/30/php-get-full-url-path/ https://blog.levelup.in.th/2009/03/30/php-get-full-url-path/#comments Sun, 29 Mar 2009 19:15:05 +0000 http://levelup.in.th/?p=6 Code สำหรับ Get URl ปัจจุบันในขณะนั้น


function full_url()
{
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = substr(strtolower($_SERVER["SERVER_PROTOCOL"]), 0, strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "/")) . $s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol . "://" . $_SERVER['SERVER_NAME'] . $port . $_SERVER['REQUEST_URI'];
}

]]>
https://blog.levelup.in.th/2009/03/30/php-get-full-url-path/feed/ 0