Thread
:
hidden folders
View Single Post
rm42
2010-02-18 , 21:33
Posts: 963 | Thanked: 626 times | Joined on Sep 2009 @ Connecticut, USA
#
4
Command line is not hard to learn. Here are some quick tips:
Command --> Result
pwd --> Tells you your 'present working directory'.
ls --> Lists contents of current directory.
ls -a --> Lists everything in current directory, including hidden files.
cd SomeDirectory --> Goes from your current directory to a child directory named SomeDirectory (if it exists)
cd .. --> Goes from your current directory to the parent directory.
rm SomeFile --> Deletes the file named SomeFile.
rmdir SomeDirectory --> Deletes SomeDirectory.
mv something somethingnew --> moves or renames something to somethingnew.
cp something somethingnew --> copies something to somethingnew.
Those are most of the commands you will ever need to know to navigate the command line. Oh, and one more tip, when typing the name of file or directory you can use Ctrl + i to let the shell finish typing the name for you. Play with those commands a bit. It will pay in the long run.
Edit: OK one more. The * is a wild card. So in order to remove all the files in the directory named /somedir/somesubdir. You would do:
rm /somedir/somesubdir/*
or, if you are already in /somedir/somesubdir, then just do:
rm *
(Of course, always be sure that you are where you think you are.)
__________________
-- Worse than not knowing is not wanting to know! --
http://temporaryland.wordpress.com/
Last edited by rm42; 2010-02-18 at
21:38
.
Quote & Reply
|
The Following 2 Users Say Thank You to rm42 For This Useful Post:
jenius
,
jib
rm42
View Public Profile
Send a private message to rm42
Visit rm42's homepage!
Find all posts by rm42