Professional Documents
Culture Documents
Operating System I
Commands
ls Command used to list all the files in the current working directory.
Example:
yasmina@ubuntu:~$ ls
Desktop Downloads Music Public Videos
Documents examples.desktop Pictures Templates
mv command used to cut file from directory and paste it into another directory.
mv filename(source) newpath(destination)
Example:
yasmina@ubuntu:~/Desktop$ mv file.txt OS1/ cut file.txt and paste in OS1
with the same filename.
yasmina@ubuntu:~/Desktop$ mv file.txt OS1/Osfile.txt cut file.txt and paste
in OS1 with change its name to Osfile.txt .
Example:
root@ubuntu:/# chmod +x file.sh file.sh will be executable.
root@ubuntu:/# chmod -r file.sh file.sh will not be readable.
root@ubuntu:/# chmod +xw file.sh file.sh will be executable and writable.