Tag Cloud

Blogumulus by Roy Tanck and Amanda Fazani

UNIX Directory Commands
mkdir [name] : Makes a directory of file group name
cd [directory] : Changes the working directory
pwd : Displays working directory
mv [file1]..[fileN] [directory] : moves file1,..,fileN to directory
cp [file1] [directory]/[file2] : copies [file1] into [file2] in directory [directory]
rmdir [directory] : Removes or erases empty directory
UNIX File Commands
ls -[option] lists files
lists files in 'long format', which contains lost of useful information, e. g.
- l the exact size of the file, who owns the file and who has the right to look at it
and when it was last modified.

ln -[option] filename(to link) filename(to generate) Link file generate (hard link)
-s symbol link

mv filename new_filename rename file(s) and directory(ies)
mv filename directory move file(s) and directory(ies)\
cp filename1 filename2 copies a file

rm -[option] filename(s)
-i Prevent the accidental removal(interactive)
-f Remove files whether write-protected or not
-r Recursively remove directories and subdirectories in the argument list


cat > file_name : 파일에 내용 덮어씌우기
cat >> file_name : 파일에 내용 이어 붙이기
touch file_name : 빈 파일 생성

0 개의 덧글:

Post a Comment