Difference between revisions of "User:Scott/03"
Jump to navigation
Jump to search
Line 36: | Line 36: | ||
= socket | = socket | ||
| = named pipe | | = named pipe | ||
+ | |||
+ | ===List Process Status=== | ||
+ | ps -l (bash) | ||
+ | ps -e [-e all processes] [-f full-listing] | ||
==Directory Usage== | ==Directory Usage== | ||
− | du -h | less | + | du -h | less (-h human readable) |
du -h /home/bob/Downloads/ (dir. in Download) | du -h /home/bob/Downloads/ (dir. in Download) | ||
du -ha /home/bob/Downloads/ (files & dir. in Download) | du -ha /home/bob/Downloads/ (files & dir. in Download) | ||
Line 46: | Line 50: | ||
==Search Locate Find== | ==Search Locate Find== | ||
+ | whereis [program] | ||
+ | which [program] | ||
+ | |||
sudo updatedb | sudo updatedb | ||
locate /dir/dir | grep file | locate /dir/dir | grep file | ||
Line 51: | Line 58: | ||
==COPY MOVE== | ==COPY MOVE== | ||
− | cp -vr Source ~/Destination (-r pr -R recursively) | + | cp -vr Source ~/Destination (-r pr -R recursively) |
− | mv -v Source ~/Destination (-r not necessary) | + | mv -v Source ~/Destination (-r not necessary) |
− | rm -rivf Desktop/ /home/dir [rmdir + content] [-i prompt] [-f force] | + | rm -rivf Desktop/ /home/dir [rmdir + content] [-i prompt] [-f force] |
==whoami== | ==whoami== | ||
Line 59: | Line 66: | ||
id (uid=1000(sjnSUSE) gid=100(users) groups=100(users) | id (uid=1000(sjnSUSE) gid=100(users) groups=100(users) | ||
date & cal | date & cal | ||
+ | |||
+ | ==echo $PATH== | ||
+ | A list of directories your shell searches through when you enter a command | ||
+ | |||
+ | ==MAN Pages== | ||
+ | man –k whoami (look-up commands) | ||
+ | info whoami | ||
+ | help whoami |
Revision as of 07:32, 19 October 2011
Directory & File Commands
Home Page user:scott Tech Support user:scott/02 Dir & Files user:scott/03 Network user:scott/04 Troubleshoot user:scott/05 Resources user:scott/06
Favorite Commands
- history (!2054)
- gksudo nautilus /home
- gconf-editor (configuration)
List Files
ls -Ra [-R recursive] [-a all] ls -ti [-t sort by time] [-i inode] ls -nr [-n UID & GID] [-r reverse order] ls -1F [-1 line by line] [-F */=@|]
File Attributes
ls -l d = directory l = symbolic link b or c = device block or char n = named pipe s = socket
ls –F @ = linked_file * = executable_file / = subdirectory = socket | = named pipe
List Process Status
ps -l (bash) ps -e [-e all processes] [-f full-listing]
Directory Usage
du -h | less (-h human readable) du -h /home/bob/Downloads/ (dir. in Download) du -ha /home/bob/Downloads/ (files & dir. in Download)
du -ha /home/bob/Downloads/ | grep -i firefox (find all instances of firefox and -i ignore case)
Search Locate Find
whereis [program] which [program]
sudo updatedb locate /dir/dir | grep file find -name filename ???
COPY MOVE
cp -vr Source ~/Destination (-r pr -R recursively) mv -v Source ~/Destination (-r not necessary) rm -rivf Desktop/ /home/dir [rmdir + content] [-i prompt] [-f force]
whoami
finger (who is logged in) id (uid=1000(sjnSUSE) gid=100(users) groups=100(users) date & cal
echo $PATH
A list of directories your shell searches through when you enter a command
MAN Pages
man –k whoami (look-up commands) info whoami help whoami