LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Some basic File Manipulation commands (https://www.linuxquestions.org/questions/linux-general-1/some-basic-file-manipulation-commands-96489/)

sureshp1980 09-24-2003 06:26 PM

Some basic File Manipulation commands
 
HI,

1. What is the command-lines for creating and deleting sub-directories.

2. what is the command-line for creating a zero-length file

3. what is command for saving a file under VIM

kev82 09-24-2003 06:39 PM

1) if you mean what i think you mean then mkdir -p and rm -r

2) touch

3) :w to write and quit :wq or ZZ

lyle_s 09-24-2003 08:36 PM

You can also create a zero-length file using ">". For example:

lyle@bowman:~/empty$ > testfile
lyle@bowman:~/empty$ ls -l testfile
-rw------- 1 lyle users 0 Sep 24 20:35 testfile
lyle@bowman:~/empty$

Lyle


All times are GMT -5. The time now is 08:29 AM.