Linux Commands

pwd ­ print working directory
    will show you the full path to the directory you are currently in.

shred ­ overwrite a file to hide its contents
     The result is that your file is so thoroughly deleted it is very unlikely to ever be 
retrieved again.

ln ­s test symlink
    Creates a symbolic link named symlink that points to the file test

free  ­   Displays the amount of used and free system memory.

w – show who is logged on and what they are doing
usage: w
who ­show who is logged in
usage: who
who ­b ­­> last system boot time
whoami – prints the effective user id.
whereis ls ­ Locates binaries and manual pages for the ls command.
cat – displays the contents of the file on the screen.

df – report file system disk space usage
     Usage: df ­h
     ­h ­­> print sizes in human readable format

du ­ summarize disk usage of each file, recursively for directories.
    Usage: du ­h

find ­   Find locations of files/directories quickly across entire filesystem
    Usage: find / ­name appname ­type d ­xdev
    ­ type d ­ search for the directory named appname
    ­xdev  Don't descend directories on other filesystems.
    ­ search against all directories below / for the appname found in directories but only
on the existing filesystem.

Command to find and remove files
find . ­name "FILE­TO­FIND"­exec rm ­rf {} \;

lspci ­  a  utility for displaying information about PCI buses in the       
system and devices connected to them.
    ­v – displays a detailed information.

lsusb – a utility for displaying information about USB buses in the       
system and the devices connected to them.
    ­v – displays a detailed information.

lshw  ­ list the hardware

hwinfo – probs for the hardware

cat /proc/cpuinfo – gives information about cpu

cat /proc/meminfo ­ gives information about memory

Comments

Popular Posts