Posts Tagged ‘file’

Unix / Linux Commands

This item was filled under [ Linux ]

File Commands

ls
directory listing

ls -al
formatted listing with hidden files

cd dir
change directory to dir

cd
change to home

pwd
show current directory

mkdir dir
create a directory dir

rm file
delete file

rm -r dir
delete directory dir

rm -f file
force remove file

rm -rf dir
force remove directory dir

cp file1 file2
copy file1 to file2

cp -r dir1 dir2
copy dir1 to dir2; create dir2 if it doesn’t exist

mv file1 file2
rename or [...]

Continue reading...

File system security (access rights)

This item was filled under [ Linux, MySQL ]

In your unixstuff directory, type
% ls -l (l for long listing!)
You will see that you now get lots of details about the contents of your directory, similar to the example below.

Each file (and directory) has associated access rights, which may be found by typing ls -l. Also, ls -lg [...]

Continue reading...

Tagged with: [ , , , ]
Update me when site is updated