ls - list all files in the current directory.
ls -lart file_name - shows the permissions of the file
history |grep xxx - find xxx in the previous commands.
dir - list the directories in the current directory.
rsync -a patch/ syn/ - copies and replaces if necessary the content of patch folder to the syn folder.
ps aux |grep <name_of_the_process%>
kill -9 <PROCESS_ID>
unzip <file_name.zip> - will unzip the files to ./<file_name> folder
rm -r -f <dir_name> - removes the directory quietly and recursively
mkdir -p <dir_name> - creates directory and doesn't complain if it is already exists.
whoami - prints the name of the current user.
pwd - prints the current directory full path
df -lh - Disk space stats
vi <file_name> - Opens text file
i - To start typing after you open the file using vi command.
:q! - Quit the text editor and don't save.
:wq - Quit the text editor and save.
:w! - Quit the text editor and save(even readonly files).
chmod u+x file_name add execute permission to the current owner of the file.
chmod u+rw file_name add read and write permission to the current owner of the file.
stat -c %a file_name gives you a numeric value of the permissions.
ls -lart file_name - shows the permissions of the file
history |grep xxx - find xxx in the previous commands.
dir - list the directories in the current directory.
rsync -a patch/ syn/ - copies and replaces if necessary the content of patch folder to the syn folder.
ps aux |grep <name_of_the_process%>
kill -9 <PROCESS_ID>
unzip <file_name.zip> - will unzip the files to ./<file_name> folder
rm -r -f <dir_name> - removes the directory quietly and recursively
mkdir -p <dir_name> - creates directory and doesn't complain if it is already exists.
whoami - prints the name of the current user.
pwd - prints the current directory full path
df -lh - Disk space stats
vi <file_name> - Opens text file
i - To start typing after you open the file using vi command.
:q! - Quit the text editor and don't save.
:wq - Quit the text editor and save.
:w! - Quit the text editor and save(even readonly files).
chmod u+x file_name add execute permission to the current owner of the file.
chmod u+rw file_name add read and write permission to the current owner of the file.
stat -c %a file_name gives you a numeric value of the permissions.