Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need help with simple Linux commands - NEWBIE here! Post 302595523 by loverangerguy on Friday 3rd of February 2012 11:00:53 AM
Old 02-03-2012
Error Need help with simple Linux commands - NEWBIE here!

Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated.
Code:
 1.      Logon to Linux.
   
  2.      Create a directory "Unix" under your home directory.

Command(s): ………………………………………….
 
 
  3.      Create four sub-directories bin, conf, docs and data under the directory 
"Unix" created by you in step 2. See the directory diagram below:

  Command(s): ………………………………………….
 
 
  4.      Create the document called “sed-info” in your "Unix" directory using touch command.
 
 
  Command: ………………………………………….
 
 
  5.      Create the document called “join-info” in your "Unix" directory using touch command.

Command: ………………………………………….
 
 
  6.      While in the Unix directory, move the files "sed-info" and "join-info" to directory “docs” using a single UNIX command.

Command: ………………………………………….
 
 
  7.      Change to your home directory.

Command: ………………………………………….
 
 
  8.      Use a single command to rename and move the “sed-info” from the “docs” directory to the “bin” directory.
   
  Command: ………………………………………….
 
 
  9.      Change to the data directory.
   
  Command: ………………………………………….
 
 
  10.  While in the data directory create a command that would copy the “sed-info” from the “bin” directory and “join-info” from the docs directory to the “conf” directory using a) absolute paths and b) relative paths.
   
  Command (relative path): ………………………………………….
   
  Command (absolute path): ………………………………………….
   
  11.  Move to your home directory. Create a single command that would delete the Unix directory and all the files and subdirectories of the Unix directory.
   
  Command: ………………………………………….

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

simple commands

Can anybody help me how to display a list of unix commands. I have an account in unix,just start to use it, but don't know how (1 Reply)
Discussion started by: aningsabah
1 Replies

2. Shell Programming and Scripting

Newbie needs help with simple script

Hi, I'm just new here, looks like there is alot to read. I need some help on a simple script that i would like to make, and I honestly have zero experience with shell scripts or anything, so i have no idea what I am doing. I want to have a script that I can upload to to my webhosting... (12 Replies)
Discussion started by: shizizzle
12 Replies

3. Shell Programming and Scripting

Simple rm commands in my server

Hi all, I have PLESK to manage my virtual dedicated server. The most recent version left a favicon.ico file in all my domains and subdomains. I want to delete them without having to go into each individual folder. So I'd like to remove favicon.ico from every subfolder of /var/www/vhosts/ ... (4 Replies)
Discussion started by: chickenhouse
4 Replies

4. UNIX for Dummies Questions & Answers

Simple newbie grep question

How come grep testfile1 won't find anything in testfile1 (even though the characters sd are there in great quantity), but grep '' testfile1 will find plenty? Do the single quotes prevent the shell from interpreting the testfile1 is interpreted as: grep *test whether or not characters sd exist*... (5 Replies)
Discussion started by: doubleminus
5 Replies

5. Programming

newbie to unix programming in C, needed a few simple prgs on these functions!

Hi all, I am a newbie to unix programming using C.. So i would like to have a few simple C programs to start off with.. I wanted programs on learning , abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg It would be really great if i can have... (1 Reply)
Discussion started by: wrapster
1 Replies

6. Shell Programming and Scripting

Newbie problem with simple script to create a directory

script is: dirname= "$(date +%b%d)_$(date +%H%M)" mkdir $dirname should create a directory named Nov4_ Instead I get the following returned: root@dchs-pint-001:/=>./test1 ./test1: Nov04_0736: not found. Usage: mkdir Directory ... root@dchs-pint-001:/=> TOO easy, but what am I... (2 Replies)
Discussion started by: gwfay
2 Replies

7. UNIX for Dummies Questions & Answers

AIX commands newbie

Guys i am a newbie with AIX. I would be glad if you can help me produce answers in this questions. thanks 1. Check server connectivity 2. Check/review/investigate for login failure detection 3. Check/review/investigate for user login failure 4. Check/review/investigate for Revoke Detection... (0 Replies)
Discussion started by: redtred
0 Replies

8. UNIX for Dummies Questions & Answers

help with simple terminal commands

i am at home with a windows xp home, and i am using putty terminal to access my linux mathlab account, my task is to compile and run a C program, called a.c, i used gcc -Wall -g -o mycode a.c to compile it into a mycode file now when i want to run it, i was told i had to use $... (2 Replies)
Discussion started by: omega666
2 Replies

9. Shell Programming and Scripting

simple problem for a newbie

I am trying to find a way to display just sudoers, passwd and shadow files without the extensions.. Thank you for any suggestions ls -lrt /etc | egrep 'sudoers|passwd|group|shadow' -r-------- 1 root root 1338 Oct 31 2006 shadow.sav -r-------- 1 root root 5191... (4 Replies)
Discussion started by: delphys
4 Replies

10. Homework & Coursework Questions

Need help with simple Linux commands

Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated. 1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies
ppmtosixel(1)						      General Commands Manual						     ppmtosixel(1)

NAME
ppmtosixel - convert a portable pixmap into DEC sixel format SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC LJ250 color inkjet printer. If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file. OPTIONS
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com- pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni- tude larger than a compressed file and prints much slower. -margin If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci- fied, a 1.5 inch left margin will offset the image. PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?. BUGS
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation. SEE ALSO
ppm(5) AUTHOR
Copyright (C) 1991 by Rick Vinci. 26 April 1991 ppmtosixel(1)
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy