Remote Windows Desktop Support
This application will let you share your Windows machine’s desktop with others.
User help
Archive for June 2008
This application will let you share your Windows machine’s desktop with others.
Concepts Files & directories
File system
man
man [command]
Within man:
info
info [command]
info info
Enter ‘m’ & enter program name
cat
Display file to STDOUT
cat [file]
more or less
Display STDOUT screen by screen
more [file]
less [file]
Within more:
ls | less
head
View the first lines of a text file
head file.txt = show first 10 lines of file
head -25 file.txt = show first 25 lines of file
tail
View the last lines of a text file
tail file.txt = show last 10 lines of file
tail -25 file.txt = show last 25 lines of file
cd
cd ~
cd .
cd ..
ls
ls -a
ls -l
lrwxrwxrwx # owner group size_in_bytes last_modified_date_&_time filename.txt ^\_/\_/\_/ | v v v | | | | | | | World permissions | | | | | Group permissions | | | Owner permissions | Type of file: - = file l = link d = directory b = block device (disk drive) c = character device (serial port or terminal)
ls -la
ll
ls -F
Classify special files with a character after the file name
ls [directory name]
pwd
Display absolute path
pwd
chmod
r = read = 4
w = write = 2
x = execute = 1
u = user
g = group
o = others
a = all
chmod 744 file
chmod -r 744 file
chmod a+x file
chmod a-x file
chmod a+rw-x file
chown
chown [username] file
chown [username].[groupname] file
file
file [filename]
od
Octal dump of files
cp
cp /path/to/file /path/to/new/file
cp /path/to/file .
cp file directory/
cp -F
cp -r directory/ directory/
cp -i file file
mv
mv file newfile
mv file directory/
mv directory/ directory/
mv -i file file
mkdir
mkdir [directoryname]
rm
rm file
rm *
rm -i filename
rm -r directory
rm -f file
rm -rf directory
rm -rf /*
Do NOT do this!
rmdir
rmdir
Note: directory must be empty; since that’s often a pain, you can use “rm -rf directory-name” instead, but be careful!
ln
ln [original_file_name] [new_file_name]
Creates a hard link
ln -s [new_file_name] [original_file_name]
Creates a soft link
find
find / -name *gnome* -print
find / -type d -maxdepth 1
find -name [name] -group [group] -size [size] -mtime [number of days ago] – type [b|c|d|f|l]
locate
locate file-or-directory
updatedb
Update the database used by the “locate” command
whereis
whereis [command]
free
How much memory is used & unused
Note that you can use this to get even more info: cat /proc/meminfo
df
Disk usage for all mounted drives
du
Disk usage for the current directory and all subdirectories
du -h
Show results in human-readable form (kb & MB)
These details were copied from:
http://www.granneman.com/techinfo/linux/commandline/basiccommands/