Linux commands
man command= help
man=manual
ls=lists directories contents
-similar to dir command
blue is a directory
red is a archive file
for long output pipe through more
ls -l |
use q or control c to scroll
ls accomponied with -la gives more info on rights and permissions of each directory.
pwd
-print working directory
tells you where your at in the Linux terminal
mv
moves a file
or renames a file or directory
cp
copies a file
-duplicates files or directories
rm= removes files or directories
-deletes the files.
chmod = change mode of a file system object
-r=read -w=write x=execute
chmod764: Group members can edit the file.
chmod744: Group members can only read the file.
chmod a -w = removes the write permission for everyone on that file (owner, group, and others).
chmod u+x <filename> gives the owner permission to execute (run) the file.</filename>
chown
change file owner and group
grep
find text in a file
find
-find a file by name or extension
.* defines a wildcard
d* defines any directory that starts with d
fsck
-file system check
checks the file systems for errors
mount
-associates a storage device with the file system
assogns it to a directory name
su/sudo
some commands require elevated rights
sudo-allows for a single command as super user
su- become the super user for that command prompt
apt
advanced packaging tool