fstab with uuid

October 10th, 2007 mysurface

When linux system starts, auto mounting partition will be done by refering to /etc/fstab. The file /etc/fstab will list down how you like the system to mount your partition. For examples, # <file system> <mount point> <type> <options> <dump> <pass> /dev/sda1 /media/sda1 vfat default,umask=077,gid=46 0 0 /dev/sda1 is the device, the number will be change [...]

Posted in Admin, blkid, ls, vol_id | Hits: 272503 | 81 Comments »

How to list just directories ( the correct way)

September 21st, 2007 mysurface

I have wrote a post stated that there are no direct ways to list just directories, and wrote a bash scripts using find to list the directories. I had made a WRONG statement. We can list just directories with ls -d, thanks to Ntropia who leaves me a comment. Before that I had tried hard [...]

Posted in Common, ls | Hits: 86346 | 19 Comments »

How to list just directories

September 19th, 2007 mysurface

There are no such direct ways to list only directories using the UNIX/ linux famous command ls. Anyway with command combo’s, we can achieve the goal in two ways shown as below. 1. use ls -l with grep 2. use find -type d ( The statement above is WRONG, check out the simple way to [...]

Posted in Bash, column, find, grep, ls, Text Manipulation | Hits: 100197 | 12 Comments »

Why linux live cd are important? How useful is it?

April 4th, 2007 mysurface

There a plenty of linux live cd, check out frozentech.com, scroll down the list and you will see this line: Currently displaying 315 LiveCD/DVDs With various tools such as Kadischi, linux live script, Ubuntu Customization Kit etc, you can easily come out your own live cd. What you required is just the matter of time [...]

Posted in df, fdisk, ls, Misc, scp | Hits: 57118 | 17 Comments »

Listing the Files and Directories

October 21st, 2006 liewsheng

When I 1st time using Linux OS, the 1st command I use is ‘ls’ ;p Why I want use ‘ls’? Of cause want to listing the files and directories in the filesystem ;D Using the command is easy: ls this will list out all the files and directories, but this wouldn’t display the hidden files/directories [...]

Posted in Common, ls | Hits: 28117 | 5 Comments »

less is more than more

October 21st, 2006 mysurface

We usually do pipeline less or pipeline more to pause a long text results from standard output. But these days, do don’t use more, because less more efficient compare to more. Let say if I want to pause the result of ls page by page, simply do this. ls | less Let say if I [...]

Posted in Common, less, ls, Misc, more | Hits: 29647 | 2 Comments »

Regular expression with egrep and ls

October 7th, 2006 mysurface

egrep is actually same as grep -E, it interpret PATTERN as an extended regular expression. Therefore ESCAPE ( \ ) is not needed for certain symbol. ls is a common tool for listing file that matches the keyword. Regular expression (RE) is a very important and useful to manipulating strings and text. In this example, [...]

Posted in egrep, grep, ls, Regular Expression, Symbol, Text Manipulation | Hits: 81959 | 3 Comments »

allow root privilage GUI application run with user login.

September 21st, 2006 mysurface

For running root access GUI apps under user login desktop, you can do this at fedora, and other red hat based distro. sudo gnome-terminal This will not run correctly at ubuntu or debian based distro, you need to do this in ubuntu gksudo gnome-terminal As you can realized that such apps like wireshark needs root [...]

Posted in Admin, gksudo, ls, sudo, which | Hits: 52011 | 12 Comments »

list only directories

September 15th, 2006 mysurface

I am searching for ls option that allow me to list only directories. I just want to list the directories but not other files and not the content of directories, I can do this ls -d */ Related PostsHow to list just directories ( the correct way)I have wrote a post stated that there are [...]

Posted in Common, ls | Hits: 27063 | 5 Comments »