All Flashcards
ls -l
List all in file with information about the file including file type and permission, memory blocks used, owner of file, group of the owner, file size in bytes, date and time it was last created or modified, and the file/directory name.
Metacharacter?
characters that have a special meaning in unix (* or ?)
? metacharacter meaning?
This is like * (which matches with 0 or more characters) whereas ? matches with a single character.
-a flag to ls
Lists invisible files
Invisible files
An invisible file is one, the first character of which is the dot or the period character (.). Unix
programs (including the shell) use most of these files to store configuration information.
Some common examples of the hidden files include the files −
.profile − The Bourne shell ( sh) initialization script
.kshrc − The Korn shell ( ksh) initialization script
.cshrc − The C shell ( csh) initialization script
.rhosts − The remote shell configuration file
. meaning
cd
..
parent directory
How to save from emacs?
C-x C-c
Control-x control-c
cat meaning
show contents of file
Copy command syntax
cp source_file destination_file
This will copy all bits of source and make a new file/overwrite destination
Renaming file syntax
mv old_file new_file
Renames it!
3 Unix streams?
stdin, stdout, stderr
Home directory
The directory in which you find yourself when you first login is called your home directory.
cd ~
brings you to your home directory
cd -
brings you to your last directory
How to open a directory within the current directory?
cd chem/notes
NOT
cd /chem/notes
This will open chem, then open notes.