background preloader

The UNIX and Linux Forums - Learn UNIX and Linux from Experts

The UNIX and Linux Forums - Learn UNIX and Linux from Experts
Related:  LinuxTerminal

Forcer la corbeille à se vider – Apprendre Mac - Confirmé Il arrive parfois que la corbeille refuse de se vider, et c’est très gênant .. Je vais vous montrer aujourd’hui une méthode pour forcer la suppression du contenu de la corbeille, et ça fonctionne à tous les coups. On va utiliser ce qui est pour moi la plus grande force de Mac OS : le fait que c’est un système Unix. Si vous ne savez pas ce que c’est, ne vous en faites pas, ça n’a pas d’importance pour le moment ;) On va donc utiliser la ligne de commande (cli) pour arriver à nos fins. Une fois le terminal lancé, écrivez la ligne suivante : Pas de panique, je vais vous expliquer ce que ça signifie. Maintenant, il va falloir dire à notre commande quel fichier supprimer, or on ne sait pas trop où est stocké en réalité le contenu de la corbeille. Là, il vous suffit de lancer la commande en appuyant sur « Entrée ». Mots-clefs : cli, corbeille, forcer, rm, unix, vider

27 Best Linux Tutorial Books That You Need To Download Now | WiredMahir Do I need to describe what is Linux? No, I don’t. Because in the world of Technology, Everyone knows it. But why people do know? Linux is a versatile foundation of all the software and OS. A major portion of software development, Tech education, OS are based on Linux. Day by day people are learning the benefit of open source software, Virus-free OS, and above all to adopt the flexible app base, where every customization is possible as per users need. So if you are a Linux User, you might be using Ubuntu, Arch Linux, Manjaro, Linux Mint, Elementary OS, Kali Linux or any other distros which you prefer. This is why today I am going to share a list of best and useful free Linux Tutorial Ebooks to become a power and expert user. SEE MORE – All in One Best Ubuntu Themes that will Blow Your Mind All the mentioned Linux Tutorial e-books originally come with a pdf version, and I have also made an epub, Mobi, and amazon kindle copy from the original pdf copy. #1. Table of Contents What is Linux? pdf

Working with Files and Directories Here is an index to the topics in this section: The Unix filesystem structure All the stored information on a Unix computer is kept in a filesystem. CONCEPT: The Unix filesystem is hierarchical (resembling a tree structure). CONCEPT: To describe a specific file or directory in the filesystem hierarchy, you must specify a "path." It is initially confusing to some that Unix uses the slash character "/" to denote the filesystem root directory, and as a directory separator in paths. Unix provides the shorthand notation of "." to refer to the current location, and ".." to refer to the parent directory. EXERCISE: Specify the absolute path to the directory named "jon" at the bottom of the tree diagram. EXPLANATION: Since the absolute path must always begin at the root (/) directory, the path would be: /users/admin/jon EXERCISE: Specify the relative path from the directory named "student" to the directory named "jon" in the tree diagram. .. File and directory permissions Read permission pwd cd /tmp cd ..

Unix - Signals and Traps Signals are software interrupts sent to a program to indicate that an important event has occurred. The events can vary from user requests to illegal memory access errors. Some signals, such as the interrupt signal, indicate that a user has asked the program to do something that is not in the usual flow of control. The following are some of the more common signals you might encounter and want to use in your programs: List of Signals: There is an easy way to list down all the signals supported by your system. The actual list of signals varies between Solaris, HP-UX, and Linux. Default Actions: Every signal has a default action associated with it. Some of the possible default actions are: Terminate the process.Ignore the signal.Dump core. Sending Signals: There are several methods of delivering signals to a program or script. When you press the Ctrl+C key a SIGINT is sent to the script and as per defined default action script terminates. $ kill -signal pid $ kill -1 1001 $ kill -9 1001 $ trap '' 2

Freebox Revolution : prise en main de la Freebox Server [MAJ] Apple continue de chasser les têtes auprès des agences de pub. Depuis l'an dernier, le constructeur de Cupertino n'a cessé de muscler ses équipes en charge du marketing, à tel point que les effectifs sont rapidement passés de 300 personnes à près de 600 employés - au grand dam des agences de com' : les profils embauchés par Apple proviennent de leurs rangs, et il est bien difficile de concurrencer l'entreprise sur le terrain des salaires (sans oublier l'intérêt de travailler pour une si grande marque). Et ça n'est pas terminé, AdAge annonçant que le CEO de Wolff Olins, Karl Heiselman, allait quitter cette agence spécialisée dans les marques pour rejoindre Cupertino. Karl Heiselman n'est pas un inconnu de la maison pommée. Lire la suite

BaBE - Bash By Examples - LinuxIntro BaBE - Bash By Examples; Your significant Linux scripting tutorial;; The easiest way to get your feet wet with a programming language is to start with a program that simply outputs a trivial text, the so-called hello-world-example. Here it is for bash: create a file named hello in your home directory with the following content: #! open a console, enter cd chmod +x hello now you can execute your file like this: # . or like this: # bash hello Hello, world! You see - the output of your shell program is the same as if you had entered the commands into a console. In your shell script you can call every command that you can call when opening a console: echo "This is a directory listing, latest modified files at the bottom:" ls -ltr echo "Now calling a browser" firefox echo "Continuing with the script" input To show you how to deal with variables, we will now write a script that asks for your name and greets you: echo "what is your name? You see that the name is stored in a variable $name. echo "$name" or #!

HowTo Format Date For Display or Use In a Shell Script byVivek GiteonFebruary 27, 2007 last updated March 31, 2016 How do I format the date to display on the screen on for my shell scripts as per my requirements on Linux or Unix like operating systems? You need to use the standard date command to format date or time. You can use the same command with the shell script. Syntax The syntax is as follows for the GNU/date and BSD/date command: date +FORMAT date +"%FORMAT" date +"%FORMAT%FORMAT" date +"%FORMAT-%FORMAT" An operand with a leading plus (+) sign signals a user-defined format string which specifies the format in which to display the date and time. Task: Display date in mm-dd-yy format Open a terminal and type the following date command: $ date +"%m-%d-%y" Sample outputs: To turn on 4 digit year display: $ date +"%m-%d-%Y" Just display date as mm/dd/yy format: $ date +"%D" Task: Display time only Type the following command: $ date +"%T" Sample outputs: To display locale’s 12-hour clock time, enter: $ date +"%r" Sample outputs: A sample shell script

Programmation Unix Programmation Unix : Signaux, processus et tubesMerci à l'auteur : Daniel Schang UNIX et langage C Rappel: la commande cc -o prog prog.c correspond à la demande de construction d'un binaire exécutable de nom prog à partir du fichier source prog.c. Au vu de la très forte imbrication qui existe entre le langage C et UNIX il est parfois très utile de pouvoir passer à un programme C des paramètres. Quand on appelle le maindu programme C, deux arguments lui sont passés en fait: le premier, baptisé conventionnellement argc signifiant nombre d'arguments (en anglais: argument count) représente le nombre d'arguments de la ligne de commande qui a appelé le programme,le second, baptisé conventionnellement argv signifiant vecteur d'arguments (en anglais: argument vector) est un pointeur sur un tableau de chaînes de caractères qui contiennent les arguments, à raison de 1 par chaîne.L'entête du programme sera donc celle-ci: main (int argc, char *argv[]) {} Les signaux sous UNIX Présentation des signaux !!!

Related: