Linux commands

 0    26 карточки    starakoza
скачать mp3 Печать играть Проверьте себя
 
Вопрос Ответ
man
начать обучение
command for help
> man grep
ls
начать обучение
List directory contents
-l long listing (ls -l),-al (ls -al) Listing With Hidden Files
grep
начать обучение
Find text in a file
grep PATTERN [FILE], grep failed auth. log
cd
начать обучение
Change current directory
Forward slashes instead of backward, cd /var/log
shutdown
sudo shutdown -r 2
начать обучение
Safely turn off the computer in software
sudo shutdown 2 (turn off in 2min), -r restart, -c cancel or ctrl+c
pwd
начать обучение
Displays the current working directory path
Useful when changing directories often
passwd
начать обучение
Change a user account password
sudo passwd [username]
mv
mv SOURCE DEST
начать обучение
Move a file
mv first. txt second. txt
cp
cp first. txt second. txt
начать обучение
Copy a file
cp SOURCE DEST
rm
начать обучение
Remove files or directories
Does not remove directories by default, -r (removes directory)
mkdir
mkdir DIRECTORY
начать обучение
Make a directory
mkdir notes
chmod
r=read, w=write, x=execute
начать обучение
Change mode of a file system object
chmod mode FILE, chmod 744 script. sh
chown
начать обучение
Change file owner and group
sudo chown [OWNER: GROUP] file, sudo chown professor script. sh
iwconfig
начать обучение
View or change wireless network configuration
ifconfig
начать обучение
View or configure a network interface and IP
Slowly being replaced by ip (ip address)
ps
начать обучение
View the current processes
ps -e | more (View all processes)
su / sudo
начать обучение
Some command require elevated rights
There are some things normal users can’t do
su
начать обучение
Become super user
You continue to be that user until you exit
sudo
начать обучение
Execute a command as the super user
Only that command executes as the super user
apt-get
начать обучение
Advanced Packaging Tool (Install, update, remove)
sudo apt-get install wireshark
vi
начать обучение
Visual mode editor
Full screen editing with copy, paste, and more
dd
начать обучение
Backup and restore an entire partition
dd if=<source file name> of=<target file name> [Options]
Creating a disk image
начать обучение
dd if=/dev/sda of=/tmp/sda-image. img
Restoring from an image
начать обучение
dd if=/tmp/sda-image. img of=/dev/sda
killall / kill <pid>
начать обучение
Closing programs
sudo killall firefox
xkill
начать обучение
Graphical kill
kill an app with one click

Вы должны войти в свой аккаунт чтобы написать комментарий.