Help for a newbie?
Hello there.
I got a few probably easy questions, though I can't seem to make it work ;p in ubuntu, how do I create a file in, lets say "/tmp/scripts", that contains a list of all filenames in the directory /bin that end wih s or t? also how do I change permisson of a file to, lets say, r-xrwx---? I'm fairly new to Linux and just looking around for basic knowledge that could proove usefull. regards. Kiwizle |
Hi
Code:
ls /bin | egrep "*.[ts]" > /tmp/scripts/file When it comes to permissions, have a look at this tutorial: http://www.comptechdoc.org/os/linux/..._ugfilesp.html |
Quote:
Code:
ls /bin/ | grep s$ >> /tmp/scripts && ls /bin/ | grep t$ >> /tmp/scripts Quote:
Code:
chmod 570 $filename |
Thanks for the advice :)
|
Glad to be of help.
If you think that your problem has been solved, please mark the thread as read (in the thread tools) |
Also, is there any command to see which filesystems are installed?
|
If you just want to know, which filesystems are currently mounted, use the 'mount' command.
|
allright, but lets say I want create an alias that will display the last 5 mounted filesystems, any advice?
just trying to make things tricky for myself to learn some ;P |
I think 'mount' lists them from 1st to last
Just do Code:
mount | tail -n 5 |
Thanks for the help, lads
|
All times are GMT -5. The time now is 10:19 AM. |