ls -lrt | ls -al | ll | dir |
List directories in current locaiton |
pwd |
Current directory location |
free -m | df | meminfo | vmstat | top |
Memory commands |
ps aux | grep "text" |
Find "text" in Current process list |
cat "file" | grep "text" |
Find "text" in "file" |
sed '/text/d' "file" > "file2" |
Delete the lines in "file" that matches the "text" into "file2" |
chmod -R 777 file|directory |
Change the permissions of objects |
chown -R user:group file|firectory |
Change the owner of objects |
rm -rf file|directory |
Delete files or directories recursively |
mkdir -p |
Create directories with parents recursively |
zip "file.zip" files... |
zip compression of "files..." into the "file.zip" |
tar -xvf |
Uncompress files based in .tar.gz |
unzip -l "file.zip" |
List files inside "file.zip" |
unzip -o "file.zip" -d "dest_dir" |
Unzip the "file.zip" provided into the destination dir "dest_dir" |
scp -pw "password" user@host:/path/to/unix/file /path/to/unix/file |
Copy files between unix hosts |
pscp -sftp -hostkey "HEX:VALUE" -pw "password" user@host:/path/to/unix/file C:\path\to\windows\file |
Copy files from unix host to windows host |
svn diff "SVNURL1" SVNURL2" |
Take the diff changes of 2 online repositories |
svn "command" --non-interactive --trust-server-cert --username "user" --password "pwd" <params> |
SVN base command to use from console |
dos2unix -k -o "file" |
Transform windows file to unix |
init 6 | shutdown -r now | reboot |
Restart the machine |
init 0 |
Turn off the machine |
wget "file_url" -P "parent_dir" |
Download the file in "file_url" into the "parent_dir" |
curl -k -u user:password "https url" |
Get the contents of a url form https with username and password |
cp -Rft |
Copy Forced |
tail -f -n 100 "file" |
Follow last 100 lines of a file |