Mise à jour: 2024-02-13 03:47:50
Unix Shell Commands Partie I : commandes basiques
pwd- find the current working directoryls- list all files in a directoryls -l- long list all files.ls -lr- list all files in reverse orderls -lt- list all files and sort by modified datels -lrt- list all files and sort by modified date with recently modified files at the last.cd <path to dir>change to directory.clearclears the screenvi <filename>create or edit a new file using vi editor.gedit <filename>create or edit a new file using gedit editor.nano <filename>create or edit a new file using nano editor.sublime <filename>create or edit a new file using sublime text editor.ididentify the current user.su <username>switch to the specified user name.sudo <programe name or cmdswitch to root and execute the command.ps -eflist all running processes.ps -ef | grep "process name"list all process name matching the grep input.netstat -anshows the network output for current environment.more <filename>view a file in the terminal window.historylist the entire history of all your typed commands for this session.cp <source filename> <destination file name>Copy source to destination.chown <owner>:<group> <filenamechange ownership of a file.lspci: List all harwardware components in the systemlspci -v | less: Details list of all hardware components in the the system.