Linux commands

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

Debes iniciar sesión para poder comentar.